From e38854ed8095fe1a018b6f070799b2e9b6523f3c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 Sep 2021 19:50:15 +0200 Subject: [PATCH] september update 1 --- Admin/Installer.php | 2 +- Admin/Routes/Web/Api.php | 14 +++++++++++++- Admin/Routes/Web/Backend.php | 14 +++++++++++++- Models/Tag.php | 2 +- Models/TagL11n.php | 28 +--------------------------- 5 files changed, 29 insertions(+), 31 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index f023893..fc72c09 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -49,6 +49,6 @@ final class Installer extends InstallerAbstract private static function installDefaultColors() : void { $setting = new Setting(); - SettingMapper::create($setting->with(0, '1007500001', '#ff000000;#ff00ff00;#ffffffff', 'Tag')); + SettingMapper::create($setting->with(0, '1007500001', '#ff000000;#ff00ff00;#ffffffff', '(#[a-fA-F0-9]{8};)*(#[a-fA-F0-9]{8})', 'Tag')); } } diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index 1ef2110..722c280 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -1,4 +1,16 @@ -id; } - /** - * Set tag. - * - * @param int $tag Tag id - * - * @return void - * - * @since 1.0.0 - */ - public function setTag(int $tag) : void - { - $this->tag = $tag; - } - - /** - * Get tag - * - * @return int - * - * @since 1.0.0 - */ - public function getTag() : int - { - return $this->tag; - } - /** * Get language *