From 0684897f89f8363dc431e8ade0535bce521a7af2 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 30 Jan 2008 16:55:30 +0000 Subject: remove stylesheet() so as not to overly pollute function names, rename link() to link_tag() to avoid PHP collision. --- system/helpers/html_helper.php | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'system') diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index 660d867bd..f88bc0723 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -238,9 +238,9 @@ if (! function_exists('image')) * @param boolean should index_page be added to the css path * @return string */ -if (! function_exists('link')) +if (! function_exists('link_tag')) { - function link($href = '', $rel = 'stylesheet', $type = 'text/css', $title = '', $media = '', $index_page = FALSE) + function link_tag($href = '', $rel = 'stylesheet', $type = 'text/css', $title = '', $media = '', $index_page = FALSE) { $CI =& get_instance(); @@ -306,25 +306,6 @@ if (! function_exists('link')) // ------------------------------------------------------------------------ -/** - * Stylesheet - * - * Generates a to a CSS - * - * @access public - * @param array - * @return string - */ -if (! function_exists('stylesheet')) -{ - function stylesheet($href = '', $rel = 'stylesheet', $title = '', $media = 'screen') - { - return link($href, $rel, 'text/css', $title, $media); - } -} - -// ------------------------------------------------------------------------ - /** * Generates meta tags from an array of key/values * -- cgit v1.2.3-24-g4f1b