mikuli.cz

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

commit 397a518088e23ed7aa41022ac2d22f59ec7d1512
parent adbe9c1ad2758831800b13b2815cd6a43a29a1d7
Author: markseu <mark2011@mayberg.se>
Date:   Wed, 29 Jul 2020 07:55:42 +0200

Refactored code base, removed clutter

Diffstat:
Msystem/extensions/core.php | 2+-
Myellow.php | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -2044,7 +2044,7 @@ class YellowExtension { public function register($key, $class) { if (!$this->isExisting($key) && class_exists($class)) { $this->data[$key] = array(); - $this->data[$key]["obj"] = new $class; + $this->data[$key]["obj"] = $class=="YellowCore" ? new stdClass : new $class; $this->data[$key]["class"] = $class; $this->data[$key]["version"] = defined("$class::VERSION") ? $class::VERSION : 0; $this->data[$key]["priority"] = defined("$class::PRIORITY") ? $class::PRIORITY : count($this->data) + 10; diff --git a/yellow.php b/yellow.php @@ -1,7 +1,7 @@ <?php // Datenstrom Yellow, https://datenstrom.se/yellow/ -require_once("system/extensions/core.php"); +require("system/extensions/core.php"); if (PHP_SAPI!="cli") { $yellow = new YellowCore();