mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Merge pull request #786 from MrPetovan/bug/6334-get-app-namespace
[various] Escape global function get_app calls
This commit is contained in:
commit
2d6a56e5e8
3 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ function widgets_module() {
|
|||
}
|
||||
|
||||
function _abs_url($s){
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1".$a->getBaseURL()."/\$2", $s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue