forked from ZwiiCMS-Team/ZwiiCMS
[9.2.17] fix breadcrumb
This commit is contained in:
parent
7208d38448
commit
7fd49fd33d
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## version 9.2.17
|
||||
- Corretion :
|
||||
- Affiche le nom du la page plutôt que son id dans le fil d'ariane
|
||||
|
||||
## version 9.2.16
|
||||
- Optimisation :
|
||||
- Sauvegarde manuelle des données de site (dossiers file et data).
|
||||
|
@ -34,7 +34,7 @@ class common {
|
||||
const TEMP_DIR = 'site/tmp/';
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '9.2.16';
|
||||
const ZWII_VERSION = '9.2.17';
|
||||
|
||||
public static $actions = [];
|
||||
public static $coreModuleIds = [
|
||||
@ -1303,17 +1303,17 @@ class core extends common {
|
||||
}
|
||||
|
||||
// Breadcrumb
|
||||
|
||||
$title = $this->getData(['page', $this->getUrl(0), 'title']);
|
||||
if (!empty($this->getData(['page', $this->getUrl(0), 'parentPageId'])) &&
|
||||
$this->getData(['page', $this->getUrl(0), 'breadCrumb'])) {
|
||||
$title = '<a href="' . helper::baseUrl() .
|
||||
$this->getData(['page', $this->getUrl(0), 'parentPageId']) .
|
||||
'">' .
|
||||
ucfirst($this->getData(['page', $this->getUrl(0), 'parentPageId'])) .
|
||||
ucfirst($this->getData(['page',$this->getData(['page', $this->getUrl(0), 'parentPageId']), 'title'])) .
|
||||
'</a> › '.
|
||||
$this->getData(['page', $this->getUrl(0), 'title']);
|
||||
}
|
||||
|
||||
// Importe la page
|
||||
if(
|
||||
$this->getData(['page', $this->getUrl(0)]) !== null
|
||||
|
Loading…
Reference in New Issue
Block a user