]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added 'true' as a truthy value for ini_get_bool().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 2 Dec 2010 15:43:43 +0000 (15:43 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 2 Dec 2010 15:43:43 +0000 (15:43 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7501 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 7c787e513a6ff5fd37c0dc91ac69bbcda7688377..70ac9d25b3c5ae66c4374469e457d811c62f96f4 100644 (file)
@@ -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);