mikuli.cz

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

commit 7b726979547c242b7fcf7aa78b085334e8f3cdb0
parent 16cf0283f9c0c994ded123b71b5d882af8490d7f
Author: markseu <mark2011@mayberg.se>
Date:   Sat,  8 Aug 2020 10:15:48 +0200

Updated installation, log file

Diffstat:
Msystem/extensions/install.php | 16++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/system/extensions/install.php b/system/extensions/install.php @@ -2,7 +2,7 @@ // Install extension, https://github.com/datenstrom/yellow class YellowInstall { - const VERSION = "0.8.32"; + const VERSION = "0.8.33"; const PRIORITY = "1"; public $yellow; // access to API @@ -78,7 +78,7 @@ class YellowInstall { $fileName = $this->yellow->system->get("coreExtensionDirectory").$this->yellow->system->get("coreLogFile"); if (!is_file($fileName)) { list($name, $version) = $this->yellow->toolbox->detectServerInformation(); - $this->yellow->log("info", "Datenstrom Yellow ".YellowCore::RELEASE.", PHP ".PHP_VERSION.", $name $version, ".PHP_OS); + $this->yellow->log("info", "Datenstrom Yellow ".YellowCore::RELEASE.", PHP ".PHP_VERSION.", $name $version, ".$this->getOperatingSystem()); if (!is_file($fileName)) { $statusCode = 500; $this->yellow->page->error(500, "Can't write file '$fileName'!"); @@ -305,6 +305,18 @@ class YellowInstall { return array_unique($languages); } + // Return operating system name + public function getOperatingSystem() { + if (PHP_OS=="Darwin") { + $name = "Mac"; + } else if (strtoupperu(substru(PHP_OS, 0, 3))=="WIN") { + $name = "Windows"; + } else { + $name = PHP_OS; + } + return $name; + } + // Return system data including static information public function getSystemData() { $data = array();