Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: extensions/Postcomment/Postcomment.php
- ===================================================================
- --- extensions/Postcomment/Postcomment.php (revision 114024)
- +++ extensions/Postcomment/Postcomment.php (working copy)
- @@ -37,7 +37,7 @@
- function execute( $par ) {
- global $wgUser, $wgOut, $wgLang, $wgMemc, $wgDBname;
- global $wgRequest, $wgSitename, $wgLanguageCode;
- - global $wgFilterCallback, $wgWhitelistEdit;
- + global $wgWhitelistEdit;
- //echo "topic: " . $wgRequest->getVal("topic_name") . "<br />";
- //echo "title: " . $wgRequest->getVal("title") . "<br />";
- @@ -107,7 +107,8 @@
- $text .= "\n\n$formattedComment\n\n";
- $tmp = "";
- - if ( $wgFilterCallback && $wgFilterCallback( $t, $text, $tmp) ) {
- + $errorText = '';
- + if ( !wfRunHooks( 'EditFilter', array( new FakeEditPage( $t ), $text, $tmp, &$errorText ) ) {
- # Error messages or other handling should be performed by the filter function
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment