From 1162af4c0da4998d484240f2e65195d7996e5d8c Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Tue, 7 Apr 2015 05:42:47 -0700 Subject: [PATCH 1/2] "PHP Strict Standards: Only variables should be passed by reference" --- include/RedDAV/RedBrowser.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php index 56d18ded6..31c2c1e45 100644 --- a/include/RedDAV/RedBrowser.php +++ b/include/RedDAV/RedBrowser.php @@ -271,8 +271,9 @@ class RedBrowser extends DAV\Browser\Plugin { '$nick' => $this->auth->getCurrentUser() )); - get_app()->page['content'] = $html; - load_pdl(get_app()); + $a = get_app(); + $a->page['content'] = $html; + load_pdl($a); $theme_info_file = "view/theme/" . current_theme() . "/php/theme.php"; if (file_exists($theme_info_file)){ @@ -282,7 +283,7 @@ class RedBrowser extends DAV\Browser\Plugin { $func(get_app()); } } - construct_page(get_app()); + construct_page($a); } /** From dbb3cda9a65f1687de730efb477a098e39358e71 Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Tue, 7 Apr 2015 05:45:24 -0700 Subject: [PATCH 2/2] missed one --- include/RedDAV/RedBrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php index 31c2c1e45..a0330d7cc 100644 --- a/include/RedDAV/RedBrowser.php +++ b/include/RedDAV/RedBrowser.php @@ -280,7 +280,7 @@ class RedBrowser extends DAV\Browser\Plugin { require_once($theme_info_file); if (function_exists(str_replace('-', '_', current_theme()) . '_init')) { $func = str_replace('-', '_', current_theme()) . '_init'; - $func(get_app()); + $func($a); } } construct_page($a);