mikuli.cz

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

commit b56162aba4ab4e350e2fee2471b4998ebec22896
parent 06c330dfe496f8cb5a1eccdbb242289f2500d813
Author: markseu <mark2011@mayberg.se>
Date:   Tue, 20 Apr 2021 11:52:04 +0200

Updated edit extension, placeholders

Diffstat:
Msystem/extensions/edit.php | 3++-
Msystem/extensions/update-current.ini | 4++--
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/system/extensions/edit.php b/system/extensions/edit.php @@ -2,7 +2,7 @@ // Edit extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/edit class YellowEdit { - const VERSION = "0.8.44"; + const VERSION = "0.8.45"; public $yellow; // access to API public $response; // web response public $merge; // text merge @@ -1489,6 +1489,7 @@ class YellowEditResponse { public function getFileNewLocation($fileNameShort, $pageLocation, $fileNewLocation) { $location = empty($fileNewLocation) ? $this->yellow->system->get("editUploadNewLocation") : $fileNewLocation; $location = preg_replace("/@timestamp/i", time(), $location); + $location = preg_replace("/@date/i", date("Y-m-d"), $location); $location = preg_replace("/@type/i", $this->yellow->toolbox->getFileType($fileNameShort), $location); $location = preg_replace("/@group/i", $this->getFileNewGroup($fileNameShort), $location); $location = preg_replace("/@folder/i", $this->getFileNewFolder($pageLocation), $location); diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -31,11 +31,11 @@ Tag: feature system/extensions/core.php: core.php, create, update Extension: Edit -Version: 0.8.44 +Version: 0.8.45 Description: Edit your website in a web browser. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/edit DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/edit.zip -Published: 2021-04-17 17:04:28 +Published: 2021-04-20 11:46:29 Developer: Datenstrom Tag: feature system/extensions/edit.php: edit.php, create, update