Skip to content

Commit 5c6adda

Browse files
committed
Merge branch 'refacto/syndication' into doryphore-dev
2 parents 1fa9d12 + 9259498 commit 5c6adda

File tree

70 files changed

+3775
-466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3775
-466
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
'no_whitespace_before_comma_in_array' => true,
6868
'no_whitespace_in_blank_line' => true,
6969
'normalize_index_brace' => true,
70+
'nullable_type_declaration_for_default_null_value' => true,
7071
'object_operator_without_whitespace' => true,
7172
'ordered_imports' => ['sort_algorithm' => 'alpha'],
7273
'semicolon_after_instruction' => true,

docs/actions/lang/actionsbuilder_en.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
return [
34
'AB_advanced' => 'Advanced',
45
'AB_bazar_label' => "Display form's data",
@@ -241,6 +242,7 @@
241242
'AB_buttons_action_button_color_danger' => 'Hazard',
242243
'AB_buttons_action_button_size_label' => 'Size',
243244
'AB_syndication_action_title_label' => 'Title',
245+
'AB_syndication_action_show_image' => 'Show pictures from RSS feed entry',
244246
'AB_bazar_commons2_ordre_label' => 'Order',
245247
'AB_bazarcarto_provider_label' => 'Map Layout',
246248
'AB_bazarcarto_barregestion_label' => 'Entry management bar',
@@ -427,15 +429,15 @@
427429
'AB_buttons_action_button_size_big' => 'Big',
428430
'AB_buttons_action_button_modal_hint' => 'Works to a page of this wiki',
429431
'AB_syndication_action_source_hint' => 'Flow Title1, Flow Title2... indicates in case of multiple sources the Flow Title',
430-
'AB_syndication_action_nb_label' => "Number of information to display",
432+
'AB_syndication_action_nb_label' => 'Number of information to display',
431433
'AB_syndication_action_template_label' => 'Visualization Template',
432434
'AB_syndication_action_template_acordion' => 'Flux in the form of accordions',
433435
'AB_syndication_action_nouvellefenetre_label' => 'The links open in a new tab',
434436
'AB_syndication_action_formatdate_label' => 'Displays publication dates',
435437
'AB_syndication_action_formatdate_option_jm' => 'Day month',
436438
'AB_syndication_action_formatdate_option_jmh' => 'Day month hour',
437439
'AB_syndication_action_formatdate_option_jmah' => 'Day Month day',
438-
'AB_bazar_sort_dynamique' => "Dynamic sorting",
440+
'AB_bazar_sort_dynamique' => 'Dynamic sorting',
439441
'AB_bazar_sort' => 'Sort data',
440442
'AB_bazar_sort_add_field' => 'Add dynamic sort',
441443
];

docs/actions/lang/actionsbuilder_fr.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'AB_bazar_bf_date_debut_evenement_label' => 'Champ pour la date de début',
5656
'AB_bazar_bf_date_fin_evenement_label' => 'Champ pour la date de fin',
5757
'AB_bazar_sort' => 'Trier les données',
58-
'AB_bazar_sort_dynamique' => "Tri dynamique",
58+
'AB_bazar_sort_dynamique' => 'Tri dynamique',
5959
'AB_bazar_sort_add_field' => 'Ajouter un tri dynamique',
6060
'AB_bazarcarto_label' => 'Cartographie',
6161
'AB_bazarcarto_description' => 'Les fiches seront sous forme de marqueur.',
@@ -419,6 +419,7 @@
419419
'AB_syndication_action_formatdate_option_jma' => 'Jour Mois année',
420420
'AB_syndication_action_formatdate_option_jmh' => 'Jour mois heure',
421421
'AB_syndication_action_formatdate_option_jmah' => 'Jour mois année heure',
422+
'AB_syndication_action_show_image' => 'Afficher les images descriptives du flux RSS',
422423
'AB_bazartableau_label' => 'Tableau',
423424
'AB_bazartableau_description' => 'Afficher sous forme de tableau',
424425
'AB_bazartableau_columnfieldsids_label' => 'Champs à afficher',

docs/actions/syndication.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,34 @@ actions:
99
url:
1010
label: _t(AB_syndication_action_url_label)
1111
hint: _t(AB_syndication_action_url_hint)
12-
value: yeswiki.net, lemonde.fr
12+
value: https://forum.yeswiki.net/c/annonces/8.rss, https://www.mediapart.fr/articles/feed
1313
type: url
1414
required: true
15-
# title:
16-
# label: _t(AB_syndication_action_title_label)
17-
# type: text
1815
source:
1916
label: _t(AB_syndication_action_source_label)
2017
hint: _t(AB_syndication_action_source_hint)
2118
type: text
22-
value: Yeswiki, le Monde
19+
value: Annonces forum YesWiki, Articles mediapart
2320
nb:
2421
label: _t(AB_syndication_action_nb_label)
2522
type: number
2623
template:
2724
type: list
2825
label: _t(AB_syndication_action_template_label)
2926
options:
30-
accordeon.tpl.html: _t(AB_syndication_action_template_acordion)
31-
liste.tpl.html: _t(AB_syndication_action_template_list)
32-
liste_description.tpl.html: _t(AB_syndication_action_template_list_and_description)
27+
accordeon.twig: _t(AB_syndication_action_template_acordion)
28+
liste.twig: _t(AB_syndication_action_template_list)
29+
liste_description.twig: _t(AB_syndication_action_template_list_and_description)
30+
showimage:
31+
type: checkbox
32+
label: _t(AB_syndication_action_show_image)
33+
default: '0'
34+
checkedvalue: '1'
35+
uncheckedvalue: '0'
36+
title:
37+
advanced: true
38+
label: _t(AB_syndication_action_title_label)
39+
type: text
3340
nouvellefenetre:
3441
advanced: true
3542
label: _t(AB_syndication_action_nouvellefenetre_label)

includes/objects/MD5PasswordHasher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(bool $needRehash)
2323
*
2424
* @throws InvalidPasswordException If the plain password is invalid, e.g. excessively long
2525
*/
26-
public function hash(string $plainPassword, string $salt = null): string
26+
public function hash(string $plainPassword, ?string $salt = null): string
2727
{
2828
if ($this->isPasswordTooLong($plainPassword)) {
2929
throw new InvalidPasswordException();
@@ -35,7 +35,7 @@ public function hash(string $plainPassword, string $salt = null): string
3535
/**
3636
* Checks that a plain password and a salt match a password hash.
3737
*/
38-
public function verify(string $hashedPassword, string $plainPassword, string $salt = null): bool
38+
public function verify(string $hashedPassword, string $plainPassword, ?string $salt = null): bool
3939
{
4040
return $hashedPassword === $this->hash($plainPassword);
4141
}

includes/services/HtmlPurifierService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function cleanXSS(string $dirtyContent): string
7171
return $dirtyContent;
7272
}
7373
if (is_null($this->antixss)) {
74-
$this->antiXss = new AntiXSS();
74+
$this->antixss = new AntiXSS();
7575
}
7676

7777
return $this->antiXss->xss_clean($dirtyContent);

0 commit comments

Comments
 (0)