diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-02 16:29:41 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-02 16:31:38 +0300 |
commit | 86e4177914831bba1d605509143f16df238ac368 (patch) | |
tree | d34ed1bb98af7d3a8dbbeb928c594210f68f6613 /lib | |
parent | eb778eb2b09636c4e34739e64e43ea7a6b590d6d (diff) |
Fix "Only variables should be passed by reference" in stable7 template
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/template.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/private/template.php b/lib/private/template.php index 983c0e3628d..4acbe4d1195 100644 --- a/lib/private/template.php +++ b/lib/private/template.php @@ -269,14 +269,17 @@ class OC_Template extends \OC\Template\Base { while (method_exists($exception, 'previous') && $exception = $exception->previous()) { $error_msg .= '<br/>Caused by:' . ' '; if ($exception->getCode()) { - $error_msg .= '['.OC_Util::sanitizeHTML($exception->getCode()).'] '; + $code = $exception->getCode(); + $error_msg .= '['.OC_Util::sanitizeHTML($code).'] '; } - $error_msg .= OC_Util::sanitizeHTML($exception->getMessage()); + $message = $exception->getMessage(); + $error_msg .= OC_Util::sanitizeHTML($message); }; } else { $hint = ''; if ($exception instanceof \OC\HintException) { - $hint = OC_Util::sanitizeHTML($exception->getHint()); + $hint = $exception->getHint(); + $hint = OC_Util::sanitizeHTML($hint); } } self::printErrorPage($error_msg, $hint); |