summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-10 13:53:40 +0200
committerJakob Sack <mail@jakobsack.de>2012-08-10 13:53:40 +0200
commit0ea4fa298c20a1cb25223b2bcaa5152c7a0f52dd (patch)
tree8f0dfee3e009daf43d6034750dfc69b6ee1c2a3f /lib
parent81b997b56ef130111b527e5b40f5d3348f30aecc (diff)
downloadnextcloud-server-0ea4fa298c20a1cb25223b2bcaa5152c7a0f52dd.tar.gz
nextcloud-server-0ea4fa298c20a1cb25223b2bcaa5152c7a0f52dd.zip
Backgroundjobs: don't try to access OC_Appconfig if ownCloud has not been installed
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php
index dae62a029c8..3a65b30ae9f 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -109,7 +109,8 @@ class OC{
OC::$SUBURI=OC::$SUBURI.'index.php';
}
}
- OC::$WEBROOT=substr($scriptName,0,strlen($scriptName)-strlen(OC::$SUBURI));
+
+ OC::$WEBROOT=substr($scriptName,0,strlen($scriptName)-strlen(OC::$SUBURI));
if(OC::$WEBROOT!='' and OC::$WEBROOT[0]!=='/'){
OC::$WEBROOT='/'.OC::$WEBROOT;
@@ -241,15 +242,16 @@ class OC{
OC_Util::addScript( "jquery.infieldlabel.min" );
OC_Util::addScript( "jquery-tipsy" );
OC_Util::addScript( "oc-dialogs" );
- OC_Util::addScript( "backgroundjobs" );
OC_Util::addScript( "js" );
OC_Util::addScript( "eventsource" );
OC_Util::addScript( "config" );
//OC_Util::addScript( "multiselect" );
OC_Util::addScript('search','result');
- if( OC_Appconfig::getValue( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax' ){
- OC_Util::addScript( 'backgroundjobs' );
+ if( OC_Config::getValue( 'installed', false )){
+ if( OC_Appconfig::getValue( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax' ){
+ OC_Util::addScript( 'backgroundjobs' );
+ }
}
OC_Util::addStyle( "styles" );