From a71a4e9753bf7a98049b0e8b1793012cfe6da673 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 29 Sep 2008 09:31:50 +0000 Subject: get_input can now be properly overridden by set_input. Fixes #324 git-svn-id: https://code.elgg.org/elgg/trunk@2142 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine') diff --git a/engine/lib/input.php b/engine/lib/input.php index 2b72c5264..23fa4b8b8 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -21,6 +21,11 @@ function get_input($variable, $default = "", $filter_result = true) { + global $CONFIG; + + if (isset($CONFIG->input[$variable])) + return $CONFIG->input[$variable]; + if (isset($_REQUEST[$variable])) { if (is_array($_REQUEST[$variable])) { @@ -40,11 +45,6 @@ return $var; } - - global $CONFIG; - - if (isset($CONFIG->input[$variable])) - return $CONFIG->input[$variable]; return $default; -- cgit v1.2.3