summaryrefslogtreecommitdiffstats
path: root/system/helpers/cookie_helper.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-07 05:16:53 +0200
committeradmin <devnull@localhost>2006-10-07 05:16:53 +0200
commit75198f97ba9df6e5696ac295820d9d73a4e4f441 (patch)
tree0ed58ab84c4a5f97808e2af8422f578e625300a8 /system/helpers/cookie_helper.php
parent88a8ad187b13b36d6120eae2344fe16c3a76219d (diff)
Diffstat (limited to 'system/helpers/cookie_helper.php')
-rw-r--r--system/helpers/cookie_helper.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php
index fc5920f25..8985fae2e 100644
--- a/system/helpers/cookie_helper.php
+++ b/system/helpers/cookie_helper.php
@@ -56,19 +56,19 @@ function set_cookie($name = '', $value = '', $expire = '', $domain = '', $path =
}
// Set the config file options
- $obj =& get_instance();
+ $CI =& get_instance();
- if ($prefix == '' AND $obj->config->item('cookie_prefix') != '')
+ if ($prefix == '' AND $CI->config->item('cookie_prefix') != '')
{
- $obj->config->item('cookie_prefix');
+ $CI->config->item('cookie_prefix');
}
- if ($domain == '' AND $obj->config->item('cookie_domain') != '')
+ if ($domain == '' AND $CI->config->item('cookie_domain') != '')
{
- $obj->config->item('cookie_domain');
+ $CI->config->item('cookie_domain');
}
- if ($prefix == '/' AND $obj->config->item('cookie_path') != '/')
+ if ($prefix == '/' AND $CI->config->item('cookie_path') != '/')
{
- $obj->config->item('cookie_path');
+ $CI->config->item('cookie_path');
}
if ( ! is_numeric($expire))
@@ -102,8 +102,8 @@ function set_cookie($name = '', $value = '', $expire = '', $domain = '', $path =
*/
function get_cookie($index = '', $xss_clean = FALSE)
{
- $obj =& get_instance();
- return $obj->input->cookie($index, $xss_clean);
+ $CI =& get_instance();
+ return $CI->input->cookie($index, $xss_clean);
}
// --------------------------------------------------------------------