aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Config.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2015-07-15 11:05:07 +0200
committerArthur <arthur@hoa.ro>2015-07-15 11:05:07 +0200
commit874f858b8fbacfcd31cd64e21555f03927d4e15a (patch)
treebe5ad2fcfeb31136e7afca0603a3cd3da3d76b57 /application/Config.php
parent5b0ebbc5de06b8a0e9679b78b45d0dc755db7986 (diff)
parentd1e2f8e52c931f84c11d4f54f32959710d528182 (diff)
downloadShaarli-874f858b8fbacfcd31cd64e21555f03927d4e15a.tar.gz
Shaarli-874f858b8fbacfcd31cd64e21555f03927d4e15a.tar.zst
Shaarli-874f858b8fbacfcd31cd64e21555f03927d4e15a.zip
Merge pull request #271 from virtualtam/php53
PHP: ensure 5.3 compatibility
Diffstat (limited to 'application/Config.php')
-rwxr-xr-xapplication/Config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/Config.php b/application/Config.php
index 0b01b524..ec799d7f 100755
--- a/application/Config.php
+++ b/application/Config.php
@@ -19,10 +19,10 @@
19function writeConfig($config, $isLoggedIn) 19function writeConfig($config, $isLoggedIn)
20{ 20{
21 // These fields are required in configuration. 21 // These fields are required in configuration.
22 $MANDATORY_FIELDS = [ 22 $MANDATORY_FIELDS = array(
23 'login', 'hash', 'salt', 'timezone', 'title', 'titleLink', 23 'login', 'hash', 'salt', 'timezone', 'title', 'titleLink',
24 'redirector', 'disablesessionprotection', 'privateLinkByDefault' 24 'redirector', 'disablesessionprotection', 'privateLinkByDefault'
25 ]; 25 );
26 26
27 if (!isset($config['config']['CONFIG_FILE'])) { 27 if (!isset($config['config']['CONFIG_FILE'])) {
28 throw new MissingFieldConfigException('CONFIG_FILE'); 28 throw new MissingFieldConfigException('CONFIG_FILE');
@@ -126,4 +126,4 @@ class UnauthorizedConfigException extends Exception
126 { 126 {
127 $this->message = 'You are not authorized to alter config.'; 127 $this->message = 'You are not authorized to alter config.';
128 } 128 }
129} \ No newline at end of file 129}