diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-11-26 01:25:08 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-26 01:25:08 +0100 |
commit | a8e4d2946afe3c1782d98da08be28c41777f7343 (patch) | |
tree | 4bcb22c8e74953ae8fcc2c765d333700c41c8f2e /lib/base.php | |
parent | 024f4375b6fc476033dbd13f03e663076d44398b (diff) | |
parent | 98dc0882cbba43e892d2a5a7bf015d0218e026cb (diff) | |
download | nextcloud-server-a8e4d2946afe3c1782d98da08be28c41777f7343.tar.gz nextcloud-server-a8e4d2946afe3c1782d98da08be28c41777f7343.zip |
Merge branch 'database' into filesystem
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 2d0bb5fb250..4522fad289c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -119,6 +119,13 @@ class OC{ } } + $installedVersion=OC_Config::getValue('version','0.0.0'); + $currentVersion=implode('.',OC_Util::getVersion()); + if (version_compare($currentVersion, $installedVersion, '>')) { + OC_DB::updateDbFromStructure('../db_structure.xml'); + OC_Config::setValue('version',implode('.',OC_Util::getVersion())); + } + ini_set('session.cookie_httponly','1;'); session_start(); @@ -184,8 +191,6 @@ if( !isset( $RUNTIME_NOAPPS )){ $RUNTIME_NOAPPS = false; } -OC::init(); - if(!function_exists('get_temp_dir')) { function get_temp_dir() { if( $temp=ini_get('upload_tmp_dir') ) return $temp; @@ -201,6 +206,8 @@ if(!function_exists('get_temp_dir')) { } } +OC::init(); + require_once('fakedirstream.php'); // FROM search.php |