Fixed backward compatibility for extensions repository settings in config.php, cleanu...
[fa-stable.git] / version.php
index 8964676933856494ef5b51b7c0eeb434e53d1886..0784c49584835c0a34802136be71d409d701496a 100644 (file)
@@ -9,16 +9,15 @@ $db_version = "2.4.0";
 $src_version = "2.4.0";
 
 // application version - can be overriden in config.php
-if (!isset($version))
-       $version = $src_version;
+$version = isset($SysPrefs->version) ? $SysPrefs->version : $src_version;
 
 //======================================================================
 // Extension packages repository settings 
 //
 // Extensions repository. Can be overriden in config.php
 
-if (!isset($repo_auth))
-       $repo_auth = array(
+$repo_auth = isset($SysPrefs->repo_auth) ? $SysPrefs->repo_auth :
+array(
                 'login' => 'anonymous',
                 'pass' => 'password',
                 'host' => 'repo.frontaccounting.eu', // repo server address