/** * @brief Loads the config file * @returns true/false * * Reads the config file and saves it to the cache */ private static function readData() { if (self::$init) { return true; } if (!file_exists(OC::$SERVERROOT . "/config/config.php")) { return false; } // Include the file, save the data from $CONFIG include OC::$SERVERROOT . "/config/config.php"; if (isset($CONFIG) && is_array($CONFIG)) { self::$cache = $CONFIG; } // We cached everything self::$init = true; return true; }