mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Escape global namespaced get_app() calls
- Add deprecated status
This commit is contained in:
parent
b8030313e5
commit
5e1ceb57de
52 changed files with 135 additions and 133 deletions
|
@ -22,7 +22,7 @@ class FriendicaSmarty extends Smarty
|
|||
{
|
||||
parent::__construct();
|
||||
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
$theme = $a->getCurrentTheme();
|
||||
|
||||
// setTemplateDir can be set to an array, which Smarty will parse in order.
|
||||
|
|
|
@ -32,7 +32,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
|
|||
$s = new FriendicaSmarty();
|
||||
}
|
||||
|
||||
$r['$APP'] = get_app();
|
||||
$r['$APP'] = \get_app();
|
||||
|
||||
// "middleware": inject variables into templates
|
||||
$arr = [
|
||||
|
@ -54,7 +54,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
|
|||
|
||||
public function getTemplateFile($file, $root = '')
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
$template = new FriendicaSmarty();
|
||||
|
||||
// Make sure $root ends with a slash /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue