diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-16 11:11:16 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-16 11:11:16 +0200 |
commit | fc33094429a942c97fb098b6ecc2c6708f507603 (patch) | |
tree | e54f0e59b972311f03f0ea4726d028100645d258 /lib/base.php | |
parent | ed77ab18c9d01ac42fd5e369cfafb7b7ac3c9c44 (diff) | |
download | nextcloud-server-fc33094429a942c97fb098b6ecc2c6708f507603.tar.gz nextcloud-server-fc33094429a942c97fb098b6ecc2c6708f507603.zip |
replaced $CONFIG_DB* with OC_CONFIG::getValue( "db*" )
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php index c84d61b3214..270bf09e9ac 100644 --- a/lib/base.php +++ b/lib/base.php @@ -51,6 +51,9 @@ set_include_path($SERVERROOT.'/lib'.PATH_SEPARATOR.$SERVERROOT.'/config'.PATH_SE if( !isset( $RUNTIME_NOSETUPFS )){ $RUNTIME_NOSETUPFS = false; } +if( !isset( $RUNTIME_NOAPPS )){ + $RUNTIME_NOAPPS = false; +} // define default config values $CONFIG_INSTALLED=false; @@ -113,8 +116,11 @@ OC_UTIL::addScript( "jquery-ui-1.8.10.custom.min" ); OC_UTIL::addScript( "js" ); OC_UTIL::addStyle( "jquery-ui-1.8.10.custom" ); OC_UTIL::addStyle( "styles" ); + // Load Apps -OC_APP::loadApps(); +if( !$RUNTIME_NOAPPS ){ + OC_APP::loadApps(); +} // check if the server is correctly configured for ownCloud OC_UTIL::checkserver(); @@ -232,13 +238,13 @@ class OC_UTIL { global $CONFIG_DATADIRECTORY_ROOT; global $CONFIG_BACKUPDIRECTORY; global $CONFIG_ENABLEBACKUP; - global $CONFIG_INSTALLED; + $CONFIG_INSTALLED = OC_CONFIG::getValue( "installed", false ); $error=''; if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){ $error.='No database drivers (sqlite or mysql) installed.<br/>'; } - global $CONFIG_DBTYPE; - global $CONFIG_DBNAME; + $CONFIG_DBTYPE = OC_CONFIG::getValue( "dbtype", "sqlite" ); + $CONFIG_DBNAME = OC_CONFIG::getValue( "dbname", "owncloud" ); if(!stristr(PHP_OS, 'WIN')){ if($CONFIG_DBTYPE=='sqlite'){ $file=$SERVERROOT.'/'.$CONFIG_DBNAME; |