Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-02 16:29:41 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-02 16:31:38 +0300
commit86e4177914831bba1d605509143f16df238ac368 (patch)
treed34ed1bb98af7d3a8dbbeb928c594210f68f6613 /lib
parenteb778eb2b09636c4e34739e64e43ea7a6b590d6d (diff)
Fix "Only variables should be passed by reference" in stable7 template
Diffstat (limited to 'lib')
-rw-r--r--lib/private/template.php9
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);