Skip to content
Snippets Groups Projects
Commit 177fd273 authored by Jakob Sack's avatar Jakob Sack
Browse files

Make OC_CONFIG working again

parent fc330944
No related branches found
No related tags found
Loading
......@@ -56,14 +56,11 @@ if( !isset( $RUNTIME_NOAPPS )){
}
// define default config values
$CONFIG_INSTALLED=false;
$CONFIG_DATADIRECTORY=$SERVERROOT.'/data';
$CONFIG_BACKUPDIRECTORY=$SERVERROOT.'/backup';
$CONFIG_HTTPFORCESSL=false;
$CONFIG_ENABLEBACKUP=false;
$CONFIG_DATEFORMAT='j M Y G:i';
$CONFIG_DBNAME='owncloud';
$CONFIG_DBTYPE='sqlite';
$CONFIG_FILESYSTEM=array();
// include the generated configfile
......
......@@ -126,8 +126,8 @@ class OC_CONFIG{
*
* Reads the config file and saves it to the cache
*/
private static function readData( $key ){
if( !self::$init ){
private static function readData(){
if( self::$init ){
return true;
}
......@@ -155,7 +155,7 @@ class OC_CONFIG{
*
* Known flaws: Strings are not escaped properly
*/
public static function writeData( $key ){
public static function writeData(){
// We need the serverroot path
global $SERVERROOT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment