summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2020-05-11 17:27:39 +0200
committerChristian Schneider2020-05-11 17:27:39 +0200
commitffefe1d1622cbda01b982648710c68acd4e1b4c2 (patch)
treef53740cb8a4f9f40be326d65d3997880f2d3a6d6 /it_url.class
parentcef3e6025587f84b3efaddcb127b88deb8c32a02 (diff)
downloaditools-ffefe1d1622cbda01b982648710c68acd4e1b4c2.tar.gz
itools-ffefe1d1622cbda01b982648710c68acd4e1b4c2.tar.bz2
itools-ffefe1d1622cbda01b982648710c68acd4e1b4c2.zip
Mark static methods properly to avoid deprecation message
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 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)