summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-03-06 12:18:57 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2012-03-06 12:18:57 -0500
commit34b0eaf23341c00dae5a809249445549f5abbc53 (patch)
tree781bf6742b1d07eb9f5615c47919bf3b251f1e6d /lib/init.php
parent08a4f848be123b9ac3a1b59e0ce0821e6df9fe26 (diff)
downloadampache-34b0eaf23341c00dae5a809249445549f5abbc53.tar.gz
ampache-34b0eaf23341c00dae5a809249445549f5abbc53.tar.bz2
ampache-34b0eaf23341c00dae5a809249445549f5abbc53.zip
Clean up uses of Config::set and Config::set_by_array
Consistently pass in a boolean instead of a string or an int for the clobber flag.
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/init.php b/lib/init.php
index dc6a34cc..0b8cd639 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -54,7 +54,7 @@ if (!function_exists('gettext')) {
}
// Define some base level config options
-Config::set('prefix',$prefix);
+Config::set('prefix', $prefix);
/*
Check to see if this is http or https
@@ -163,7 +163,7 @@ require_once $prefix . '/modules/ampacheapi/AmpacheApi.lib.php';
/* Temp Fixes */
$results = Preference::fix_preferences($results);
-Config::set_by_array($results,1);
+Config::set_by_array($results, true);
// Modules (These are conditionally included depending upon config values)
if (Config::get('ratings')) {
@@ -264,7 +264,7 @@ if (session_id()) {
}
/* Add in some variables for ajax done here because we need the user */
-Config::set('ajax_url',Config::get('web_path') . '/server/ajax.server.php',1);
+Config::set('ajax_url', Config::get('web_path') . '/server/ajax.server.php', true);
// Load gettext mojo
load_gettext();