summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authornisheeth-barthwal <nisheeth.barthwal@nbaztec.co.in>2013-03-25 19:12:36 +0100
committernisheeth-barthwal <nisheeth.barthwal@nbaztec.co.in>2013-03-25 19:12:36 +0100
commit77236e055234cbbc9f6ca6be472c70077a1f5856 (patch)
treeef91b1b78aa5bd4dac90737af0f8611f6a9bdbf2 /system/helpers/form_helper.php
parent7b1a2f1f40d940dde34e47b36808a84e0353af56 (diff)
Simplified notation parsing and other cosmetic fixes
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php34
1 files changed, 2 insertions, 32 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 2238af92a..443a06a2d 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -647,7 +647,8 @@ if ( ! function_exists('set_value'))
return form_prep($OBJ->set_value($field, $default), $is_textarea);
}
- if (FALSE !== ($OBJ =& _get_input_object()) && ($value = $OBJ->post($field, FALSE)))
+ $CI =& get_instance();
+ if (NULL !== ($value = $CI->input->post($field, FALSE)))
{
return form_prep($value, $is_textarea);
}
@@ -1007,36 +1008,5 @@ if ( ! function_exists('_get_validation_object'))
}
}
-// ------------------------------------------------------------------------
-
-if ( ! function_exists('_get_input_object'))
-{
- /**
- * Input Object
- *
- * Fetches the input object
- *
- * @return mixed
- */
- function &_get_input_object()
- {
- $CI =& get_instance();
-
- // We set this as a variable since we're returning by reference.
- $return = FALSE;
-
- if ( ! isset($CI->input) OR ! is_object($CI->input))
- {
- return $return;
- }
- else
- {
- $return = $CI->input;
- }
-
- return $return;
- }
-}
-
/* End of file form_helper.php */
/* Location: ./system/helpers/form_helper.php */ \ No newline at end of file