aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-02 15:43:43 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-02 15:43:43 +0000
commit8bb6d8ccc07fccc14bf0404ffd4190b69a658c48 (patch)
tree187a15e7033cd8f723233761bbc8ca103ff38b78 /engine/lib
parentaaf77c64250c97d2b953aac8e63d3f1efd3155e7 (diff)
downloadelgg-8bb6d8ccc07fccc14bf0404ffd4190b69a658c48.tar.gz
elgg-8bb6d8ccc07fccc14bf0404ffd4190b69a658c48.tar.bz2
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
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php10
1 files changed, 5 insertions, 5 deletions
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);