dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dc1451
)
pretty up the hook error message with an explanation of what it should do instead
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 20 Jul 2007 15:15:09 +0000
(15:15 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 20 Jul 2007 15:15:09 +0000
(15:15 +0000)
includes/Hooks.php
patch
|
blob
|
history
diff --git
a/includes/Hooks.php
b/includes/Hooks.php
index
cdbd742
..
20103db
100644
(file)
--- a/
includes/Hooks.php
+++ b/
includes/Hooks.php
@@
-130,7
+130,9
@@
function wfRunHooks($event, $args = null) {
} else {
$prettyFunc = strval( $callback );
}
- throw new MWException( "Invalid NULL return from broken hook $prettyFunc" );
+ throw new MWException( "Detected bug in an extension! " .
+ "Hook $prettyFunc failed to return a value; " .
+ "should return true to continue hook processing or false to abort." );
} else if (!$retval) {
return false;
}