mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit e1d52bb8789e4c4fa2c98b6f22a3eb4775095e64
parent 9b24d93a6e4a7c5d1c70d26d878110ab75b743e3
Author: markseu <mark2011@mayberg.se>
Date:   Sat, 17 Jun 2017 17:48:59 +0200

System update

Diffstat:
Msystem/plugins/update.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/system/plugins/update.php b/system/plugins/update.php @@ -78,7 +78,8 @@ class YellowUpdate preg_match("/^.*\/(.+?)$/", dirname($page->fileName), $matches); $value = $this->yellow->lookup->normaliseName($matches[1], true, false, true); if(!is_file($this->yellow->config->get("templateDir").$value.".html")) $value = $valueDefault; - if(empty($this->yellow->toolbox->getMetaData($page->rawData, "template")) && $value!=$valueDefault) + $pageTemplate = $this->yellow->toolbox->getMetaData($page->rawData, "template"); + if(empty($pageTemplate) && $value!=$valueDefault) { $rawDataNew = $this->yellow->toolbox->setMetaData($page->rawData, "template", $value); if($page->rawData!=$rawDataNew) $this->yellow->toolbox->createFile($page->fileName, $rawDataNew);