summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class2
-rw-r--r--itjs.class2
2 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class
index 3102913..d5492e8 100644
--- a/it_url.class
+++ b/it_url.class
@@ -752,7 +752,7 @@ static function absolute($url = null, $proto_force = null)
* @param $type Type of redirect, "temporary" or "permanent", default temporary
* @return This method never returns.
*/
-function redirect($url = null, $type = "temporary")
+static function redirect($url = null, $type = "temporary")
{
$codes = array('permanent' => 301, 'temporary' => 303); # NOTE: HTTP 303 is called "See Other", rather than Temporary (which would be HTTP 307), but is the behaviour one usually wants for temporary redirects
if (!($code = $codes[$type]) || !$url)
diff --git a/itjs.class b/itjs.class
index 9e3595a..be6a226 100644
--- a/itjs.class
+++ b/itjs.class
@@ -26,7 +26,7 @@ static $charset;
/**
* Send HTTP headers (content-type) to transmit javascript code
*/
-function send_headers($charset = null)
+static function send_headers($charset = null)
{
if (!$charset)
$charset = ini_get('default_charset') ?: 'iso-8859-1';