summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-22 22:09:51 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-22 22:09:51 +0200
commit698d87d578dfe5d2a794f75003ded834081ca738 (patch)
tree43d5ab8d0cc756683e0f32b8ae2ce918326e1624 /src
parenta89fd7228a0889c23b12fa5845decec9c4c121c2 (diff)
downloadste-698d87d578dfe5d2a794f75003ded834081ca738.tar.gz
ste-698d87d578dfe5d2a794f75003ded834081ca738.tar.bz2
ste-698d87d578dfe5d2a794f75003ded834081ca738.zip
Allow returning a non-string (usually void) again in custom tagsHEAD2.0.1master
Diffstat (limited to 'src')
-rw-r--r--src/ste/STECore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ste/STECore.php b/src/ste/STECore.php
index a53e652..595228b 100644
--- a/src/ste/STECore.php
+++ b/src/ste/STECore.php
@@ -123,7 +123,7 @@ class STECore
throw new RuntimeError("Can not call tag \"$name\": Does not exist.");
}
}
- return call_user_func($this->tags[$name], $this, $params, $sub);
+ return (string)call_user_func($this->tags[$name], $this, $params, $sub);
} catch (RuntimeError $e) {
if (!$this->mute_runtime_errors) {
return "RuntimeError occurred on tag '$name': " . $e->getMessage();