diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/it_url.class b/it_url.class index 81729c6..a48013e 100644 --- a/it_url.class +++ b/it_url.class @@ -702,7 +702,7 @@ function _atomicwrite($path, $data) * @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, http://host/bar.html ), default self * @return absolute version of URL ( http[s]://host/bar.html ) */ -function absolute($url=null) +static function absolute($url=null) { if (!isset($url)) $url = $_SERVER['PHP_SELF']; @@ -744,7 +744,7 @@ function redirect($url = null, $type = "temporary") /** * Urlencode but leave some chars */ -function encode($str) +static function encode($str) { return strtr(urlencode($str), array("%2C"=>",", "%28"=>"(", "%29"=>")")); } @@ -754,12 +754,12 @@ function encode($str) * @param $params Array to take values from, usually $_GET * @param $keys Keys to use; default: all */ -function params($params, $keys = null) +static function params($params, $keys = null) { return join("&", it_url::_params($params, $keys)); } -function _params($params, $keys = null) +static function _params($params, $keys = null) { $result = array(); |