summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/html_helper.php21
-rw-r--r--system/helpers/url_helper.php4
2 files changed, 23 insertions, 2 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index e32abfbf2..90a776386 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -178,6 +178,27 @@ function nbs($num = 1)
return str_repeat(" ", $num);
}
+// ------------------------------------------------------------------------
+
+/**
+ * Generates meta tags from an array of key/values
+ *
+ * @access public
+ * @param array
+ * @return string
+ */
+function meta($meta = array(), $newline = "\n")
+{
+ $str = '';
+ foreach ($meta as $key => $val)
+ {
+ $str .= '<meta http-equiv="'.$key.'" content="'.$val.'" />'.$newline;
+ }
+
+ return $str;
+}
+
+
?> \ No newline at end of file
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index 9010a06a3..3ca597460 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -442,9 +442,9 @@ function redirect($uri = '', $method = 'location')
{
switch($method)
{
- case 'refresh' : header("Refresh:0;url=".site_url($uri));
+ case 'refresh' : header("Refresh:0;url=".site_url($uri));
break;
- default : header("location:".site_url($uri));
+ default : header("location:".site_url($uri));
break;
}
exit;