summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-02-26 01:12:33 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-02-26 01:12:33 +0000
commita049856df3f316114a9d936d830d5b6d419b11e6 (patch)
tree1d9cc553a835a9a15cf885478beea47e398fac62
parentf3283f02766b2a2730b81c5a5a0b0a6240af054c (diff)
downloadrpg-a049856df3f316114a9d936d830d5b6d419b11e6.tar.gz
rpg-a049856df3f316114a9d936d830d5b6d419b11e6.tar.bz2
revert back to trigger error
-rw-r--r--_test/tests/inc/parserutils_get_renderer.test.php2
-rw-r--r--inc/parserutils.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/_test/tests/inc/parserutils_get_renderer.test.php b/_test/tests/inc/parserutils_get_renderer.test.php
index 540063e19..69aeb3b19 100644
--- a/_test/tests/inc/parserutils_get_renderer.test.php
+++ b/_test/tests/inc/parserutils_get_renderer.test.php
@@ -46,7 +46,7 @@ class parserutils_get_renderer_test extends DokuWikiTest {
// test fallback fails
/**
- * @expectedException Exception
+ * @expectedException PHPUnit_Framework_Error
* @expectedExceptionCode E_USER_WARNING
*/
function test_p_get_renderer_fallback_fail() {
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 1c628a766..c12732e88 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -665,7 +665,7 @@ function p_get_renderer($mode) {
}
// fallback failed, alert the world
- throw new Exception("Unable to resolve render class $rclass",E_USER_WARNING);
+ trigger_error("Unable to resolve render class $rclass",E_USER_WARNING);
msg("No renderer '$rname' found for mode '$mode'",-1);
return null;
}