summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-10-08 18:42:59 +0200
committerDerek Allard <derek.allard@ellislab.com>2009-10-08 18:42:59 +0200
commit8719a5c7fe75b84f49f584065e5ef4e4e2a0f16f (patch)
tree9bcf90c2529519ca8aaf75fc8a7a307a08dde8f3 /system
parent15bc6f50246c864c64fabd55a35be28c3b5ef6c1 (diff)
Deprecated the dohash() function in favour of do_hash() for naming consistency.
Diffstat (limited to 'system')
-rw-r--r--system/helpers/security_helper.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php
index 9cc70aaff..8fb53e718 100644
--- a/system/helpers/security_helper.php
+++ b/system/helpers/security_helper.php
@@ -49,13 +49,29 @@ if ( ! function_exists('xss_clean'))
/**
* Hash encode a string
*
+ * This is simply an alias for do_hash()
+ * dohash() is now deprecated
+ */
+if ( ! function_exists('dohash'))
+{
+ function dohash($str, $type = 'sha1')
+ {
+ return $this->do_hash($str, $type);
+ }
+}
+
+// --------------------------------------------------------------------
+
+/**
+ * Hash encode a string
+ *
* @access public
* @param string
* @return string
*/
-if ( ! function_exists('dohash'))
+if ( ! function_exists('do_hash'))
{
- function dohash($str, $type = 'sha1')
+ function do_hash($str, $type = 'sha1')
{
if ($type == 'sha1')
{