1
0
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:
Cameron
2020-12-03 14:20:34 -08:00
parent 066104f4c3
commit 86690cee65
6 changed files with 129 additions and 20 deletions

View File

@@ -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;
}