]> git.andy128k.dev Git - ipf.git/commitdiff
version 0.5 beta
authorAndrey Kutejko <andy128k@gmail.com>
Wed, 4 Sep 2013 16:54:23 +0000 (19:54 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Wed, 4 Sep 2013 16:54:23 +0000 (19:54 +0300)
ipf.php
ipf/admin/app.php
ipf/cli.php
ipf/version.php [deleted file]

diff --git a/ipf.php b/ipf.php
index 5b378cf7a5dbe2ed0dca4d84970e64d91b42d89a..339e84b8b5c181f899d21e103f98ba8e9624ca0e 100644 (file)
--- a/ipf.php
+++ b/ipf.php
@@ -2,6 +2,11 @@
 
 final class IPF
 {
+    public static function version()
+    {
+        return '0.5 beta';
+    }
+
     private static $settings = array(
         'app_base'          => '',
         'debug'             => false,
index 9b8790759ca9bfb4a8a9b459d43ff56185cf7a88..0af7c96c4f24d0b9aa6a5f19ea927881c2f6c90c 100644 (file)
@@ -30,7 +30,7 @@ class IPF_Admin_App extends IPF_Application
     public function templateContext($request)
     {
         return array(
-            'IPF_VER' => IPF_Version::$name,
+            'IPF_VER' => IPF::version(),
             'ADMIN_MEDIA_URL' => IPF::get('static_url') . 'admin/',
         );
     }
index bafdd9d5b7821dcce827c59c0310aead7cc111ea..dfecfba13c42542cc03f07556a7c895c8aa4543a 100644 (file)
@@ -62,7 +62,7 @@ class IPF_Cli
 
     public function run()
     {
-        print "IPF command line tool. Version: ".IPF_Version::$name."\n";
+        print "IPF command line tool. Version: ".IPF::version()."\n";
         print "Project config: ".IPF::get('settings_file')."\n\n";
 
         $args = $this->getArgs();
diff --git a/ipf/version.php b/ipf/version.php
deleted file mode 100644 (file)
index ad59e8f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-final class IPF_Version{
-    static $name = '0.4 beta';
-}
\ No newline at end of file