1.10.12 fix bug mot clé [MODULE] absent

This commit is contained in:
Fred Tempez 2024-08-24 07:20:17 +02:00
parent c024340af7
commit ef5de018b0
2 changed files with 2 additions and 2 deletions

View File

@ -746,7 +746,7 @@ class core extends common
$this->addOutput([
'content' => ob_get_clean() . ($output['showPageContent'] ? $pageContent : '')
]);
} else if ($modpos === 'free') {
} elseif ($modpos === 'free' && strstr($pageContent, '[MODULE]')) {
if (strstr($pageContent, '[MODULE]', true) === false) {
$begin = strstr($pageContent, '[]', true);
} else {

View File

@ -51,7 +51,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.10.11';
const ZWII_VERSION = '1.10.12';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';