]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Config.php
Introduce the Updater class which
[github/shaarli/Shaarli.git] / application / Config.php
index 9af5a535a5b9181e0c02457fa206a49c7b26e60e..05a594527e5aabde23f20551f848247081134ac4 100644 (file)
@@ -173,33 +173,6 @@ function load_plugin_parameter_values($plugins, $config)
     return $out;
 }
 
-/**
- * Milestone 0.9 - shaarli/Shaarli#41: options.php is not supported anymore.
- * ==> if user is loggedIn, merge its content with config.php, then delete options.php.
- *
- * @param array $config     contains all configuration fields.
- * @param bool  $isLoggedIn true if user is logged in.
- *
- * @return void
- */
-function mergeDeprecatedConfig($config, $isLoggedIn)
-{
-    $config_file = $config['config']['CONFIG_FILE'];
-
-    if (is_file($config['config']['DATADIR'].'/options.php') && $isLoggedIn) {
-        include $config['config']['DATADIR'].'/options.php';
-
-        // Load GLOBALS into config
-        foreach ($GLOBALS as $key => $value) {
-            $config[$key] = $value;
-        }
-        $config['config']['CONFIG_FILE'] = $config_file;
-        writeConfig($config, $isLoggedIn);
-
-        unlink($config['config']['DATADIR'].'/options.php');
-    }
-}
-
 /**
  * Exception used if a mandatory field is missing in given configuration.
  */