summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2026-07-21 16:17:59 +0200
committerUrban Müller2026-07-21 16:17:59 +0200
commit14c54458c698170289d5a48cb7e5c0cc82756337 (patch)
tree82136740381fdf21bb83eb00ce63661b59f852af /it_url.class
parent8674f57e639cd91a98da384b118cd953878f9538 (diff)
downloaditools-14c54458c698170289d5a48cb7e5c0cc82756337.tar.gz
itools-14c54458c698170289d5a48cb7e5c0cc82756337.tar.bz2
itools-14c54458c698170289d5a48cb7e5c0cc82756337.zip
correctly describe behaviour (thx buddha), fix misleading old doc
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class
index 3f9f5e0..2eb124d 100644
--- a/it_url.class
+++ b/it_url.class
@@ -859,9 +859,9 @@ static function _atomicwrite($path, $data)
}
/**
- * Make an URL absolute by using host and protocol from current Apache request (but not port). Never changes protocol given in url
+ * Make an URL absolute by using host and protocol (but not port) from current Apache request; http: in script context
* @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, https://host/bar.html ), default self
- * @param $proto_force Optional protocol to enforce, default protocol of current request or http if in script context
+ * @param $proto_force Optional protocol to enforce, even if a protocol is given in $url
* @return absolute version of URL ( http[s]://host/bar.html )
*/
static function absolute($url = null, $proto_force = null, $prefix = '')