diff options
author | Robin Appelman <icewind1991@gmail.com> | 2012-01-08 01:45:18 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2012-01-08 01:45:18 +0100 |
commit | 8f8985c3e53862e2ca6446f296d4835a9577faac (patch) | |
tree | 22294cff607c893e0e53a5d11948b31b3bf66089 /lib/base.php | |
parent | 23f52aa6fd91157454dfd57ad36dfb0ca7c382ab (diff) | |
parent | a8148fa94a6805ca7c6585e136905d5ec155a102 (diff) | |
download | nextcloud-server-8f8985c3e53862e2ca6446f296d4835a9577faac.tar.gz nextcloud-server-8f8985c3e53862e2ca6446f296d4835a9577faac.zip |
Merge branch 'database'
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 0954e3615bd..c3965c9cd39 100644 --- a/lib/base.php +++ b/lib/base.php @@ -152,6 +152,15 @@ 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())); + } + + OC_App::updateApps(); + ini_set('session.cookie_httponly','1;'); session_start(); @@ -230,8 +239,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; @@ -247,6 +254,8 @@ if(!function_exists('get_temp_dir')) { } } +OC::init(); + require_once('fakedirstream.php'); |