From 8bb6d8ccc07fccc14bf0404ffd4190b69a658c48 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 2 Dec 2010 15:43:43 +0000 Subject: Added 'true' as a truthy value for ini_get_bool(). git-svn-id: http://code.elgg.org/elgg/trunk@7501 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 7c787e513..70ac9d25b 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1336,7 +1336,7 @@ function elgg_deprecated_notice($msg, $dep_version) { * @param string $file Optional file that the function must reside in. * * @return bool - * + * * @deprecated 1.8 A neat but pointless function */ function call_gatekeeper($function, $file = "") { @@ -1405,12 +1405,12 @@ function call_gatekeeper($function, $file = "") { * searched. * * @return void - * + * * @deprecated 1.8 A neat but pointless function */ function callpath_gatekeeper($path, $include_subdirs = true, $strict_mode = false) { elgg_deprecated_notice("callpath_gatekeeper() is neat but pointless", 1.8); - + global $CONFIG; $path = sanitise_string($path); @@ -1954,7 +1954,7 @@ $sort_type = SORT_LOCALE_STRING) { function ini_get_bool($ini_get_arg) { $temp = ini_get($ini_get_arg); - if ($temp == '1' or strtolower($temp) == 'on') { + if ($temp == '1' or strtolower($temp) == 'on' or strtolower($temp) == 'true') { return true; } return false; @@ -2133,7 +2133,7 @@ function css_page_handler($page) { $css = substr($page[0], 0, strpos($page[0], '.')); $return = elgg_view("css/$css"); - + header("Content-type: text/css", true); header('Expires: ' . date('r', time() + 86400000), true); header("Pragma: public", true); -- cgit v1.2.3