Skip to content

Commit

Permalink
Merge branch 'plxMotor-cibleName-240401' into 5.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bazooka07 committed Apr 1, 2024
2 parents cdce214 + c8374e6 commit 8809758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/class.plx.motor.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class plxMotor {
public $mode = false; # Mode de traitement
public $template = false; # Template d'affichage
public $cible = false; # Article, categorie ou page statique cible
public $cibleName = ''; # pour mode==tag dans prechauffage() - compatibilité PHP-8.0.0+

public $activeCats = false; # Liste des categories actives sous la forme 001|002|003 etc
public $homepageCats = false; # Liste des categories à afficher sur la page d'accueil sous la forme 001|002|003 etc
Expand Down Expand Up @@ -220,7 +221,7 @@ public function prechauffage() {
$tagUrls = array_map(array('plxUtils', 'urlify'), $tags);
if(in_array($this->cible, $tagUrls)) {
if(!isset($ids[$idart])) $ids[$idart] = $idart;
if(!isset($this->cibleName)) {
if(empty($this->cibleName)) {
$key = array_search($this->cible, $tagUrls);
$this->cibleName=$tags[$key];
}
Expand Down

0 comments on commit 8809758

Please sign in to comment.