Index: trunk/kernel/parser.php
===================================================================
diff -u -r875 -r879
--- trunk/kernel/parser.php (.../parser.php) (revision 875)
+++ trunk/kernel/parser.php (.../parser.php) (revision 879)
@@ -2213,10 +2213,9 @@
@attrib: _Query:str: Extra query sring to be added to link URL (ex: "&test=test")
@attrib: _Category:int: Set the current category to this ID. If not set, the current category is unchanged
@attrib: _anchor:: If included, a local anchor (#) is added. (ex: _anchor="top" results in )
- @attrib: _Secure:bool:If set, creates an https URL
@attrib: _Root:bool:If set, gets module root category id
@attrib: _Module:str:Module Name
- @attrib: _Unsecure:bool: Is set, creates an insecure full url (http://...)
+ @attrib: _Relative:bool: Is set, creates an relative url url (../..address)
@example: ">
*/
function m_template_link($attribs = array())
@@ -2245,20 +2244,8 @@
}
}
- $ret = GetIndexURL(2)."?env=".BuildEnv().$query;
-
- /*if($attribs["_secure"])
- {
- $ret = GetIndexURL(1)."?env=".BuildEnv().$query;
- }
- elseif($attribs["_unsecure"])
- {
- $ret = GetIndexURL(2)."?env=".BuildEnv().$query;
- }
- else
- {
- $ret = GetIndexURL()."?env=".BuildEnv().$query;
- }*/
+ $link_type = getArrayValue($attribs,'_relative') ? 0 : 2;
+ $ret = GetIndexURL($link_type)."?env=".BuildEnv().$query;
if(strlen($attribs["_anchor"]))
$ret .= "#".$attribs["_anchor"];