]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Config.php
PHP: ensure 5.3 compatibility, refactor timezone utilities
[github/shaarli/Shaarli.git] / application / Config.php
index 0b01b524686a0523e429d3da3199c95fe788ff98..ec799d7f75cda61bfe33bf4e3d228b5e4952cf85 100755 (executable)
 function writeConfig($config, $isLoggedIn)\r
 {\r
     // These fields are required in configuration.\r
-    $MANDATORY_FIELDS = [\r
+    $MANDATORY_FIELDS = array(\r
         'login', 'hash', 'salt', 'timezone', 'title', 'titleLink',\r
         'redirector', 'disablesessionprotection', 'privateLinkByDefault'\r
-    ];\r
+    );\r
 \r
     if (!isset($config['config']['CONFIG_FILE'])) {\r
         throw new MissingFieldConfigException('CONFIG_FILE');\r
@@ -126,4 +126,4 @@ class UnauthorizedConfigException extends Exception
     {\r
         $this->message = 'You are not authorized to alter config.';\r
     }\r
-}
\ No newline at end of file
+}\r