Added get_post() to the Input class.
Documented get() in the Input class.
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index 8c08468..0b05c54 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -274,6 +274,28 @@
// --------------------------------------------------------------------
/**
+ * Fetch an item from either the GET array or the POST
+ *
+ * @access public
+ * @param string The index key
+ * @param bool XSS cleaning
+ * @return string
+ */
+ function get_post($index = '', $xss_clean = FALSE)
+ {
+ if ( ! isset($_POST[$index]) )
+ {
+ return $this->get($index, $xss_clean);
+ }
+ else
+ {
+ return $this->post($index, $xss_clean);
+ }
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Fetch an item from the COOKIE array
*
* @access public