summaryrefslogtreecommitdiffstats
path: root/system/helpers/html_helper.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-30 17:55:30 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-30 17:55:30 +0100
commit0684897f89f8363dc431e8ade0535bce521a7af2 (patch)
tree956709e818d47e812e3aefb06ad7d7473cd3769f /system/helpers/html_helper.php
parentf45c677e1432126fc4863c842ea36a494016e692 (diff)
remove stylesheet() so as not to overly pollute function names, rename link() to link_tag() to avoid PHP collision.
Diffstat (limited to 'system/helpers/html_helper.php')
-rw-r--r--system/helpers/html_helper.php23
1 files changed, 2 insertions, 21 deletions
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();
@@ -307,25 +307,6 @@ if (! function_exists('link'))
// ------------------------------------------------------------------------
/**
- * Stylesheet
- *
- * Generates a <link /> 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
*
* @access public