diff --git a/src/core/init.php b/src/core/init.php index 03c1077..2239eba 100644 --- a/src/core/init.php +++ b/src/core/init.php @@ -29,7 +29,6 @@ class Init { // YOU REALLY SHOULD HAVE YOUR OWN CONFIG FILE!!! if (!file_exists($config)) { - echo copy(Core::root_dir()."/sample-config/services.sample.ini", $config); $config = Core::root_dir()."/sample-config/config.sample.ini"; } @@ -40,7 +39,6 @@ class Init { // YOU REALLY SHOULD HAVE YOUR OWN SERVICES FILE!!! if (!file_exists($services)) { - echo copy(Core::root_dir()."/sample-config/services.sample.ini", $services); $services = Core::root_dir()."/sample-config/services.sample.ini"; } diff --git a/src/core/init/core.php b/src/core/init/core.php index 01bdffa..6bd6a42 100644 --- a/src/core/init/core.php +++ b/src/core/init/core.php @@ -1,5 +1,6 @@ url = Core::$CurrentPage; - $this->commit = Core::$Config["CommitID"]; + if (!Core::$Config["CommitID"]){ + $this->version = Core::VERSION; + } else { + $this->version = "git commit ".Core::$Config["CommitID"]; + } + } }