Backgroundjobs: don't try to access OC_Appconfig if ownCloud has not been installed
This commit is contained in:
parent
81b997b56e
commit
0ea4fa298c
|
@ -109,6 +109,7 @@ class OC{
|
|||
OC::$SUBURI=OC::$SUBURI.'index.php';
|
||||
}
|
||||
}
|
||||
|
||||
OC::$WEBROOT=substr($scriptName,0,strlen($scriptName)-strlen(OC::$SUBURI));
|
||||
|
||||
if(OC::$WEBROOT!='' and OC::$WEBROOT[0]!=='/'){
|
||||
|
@ -241,16 +242,17 @@ 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_Config::getValue( 'installed', false )){
|
||||
if( OC_Appconfig::getValue( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax' ){
|
||||
OC_Util::addScript( 'backgroundjobs' );
|
||||
}
|
||||
}
|
||||
|
||||
OC_Util::addStyle( "styles" );
|
||||
OC_Util::addStyle( "multiselect" );
|
||||
|
|
Loading…
Reference in New Issue