mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
Parser staticUrl() test and JS manager addLink() test added.
This commit is contained in:
@@ -799,9 +799,10 @@ class e_jsmanager
|
||||
|
||||
/**
|
||||
* Render all link tags. (other than css)
|
||||
* @return null
|
||||
* @param bool $return - when true will not echo the result, will return it instead.
|
||||
* @return null|string
|
||||
*/
|
||||
public function renderLinks()
|
||||
public function renderLinks($return = false)
|
||||
{
|
||||
if(empty($this->_e_link))
|
||||
{
|
||||
@@ -853,6 +854,11 @@ class e_jsmanager
|
||||
|
||||
}
|
||||
|
||||
if(!empty($return))
|
||||
{
|
||||
return $text;
|
||||
}
|
||||
|
||||
echo $text;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user