Page MenuHomePhabricator

Add "InternalParseBeforeLinks" hook
Closed, ResolvedPublic

Description

Author: steve

Description:
Semantic Mediawiki needs a hook which requires the user to edit parser.php each
time a new version of Mediawiki is installed. Since Semantic Mediawiki is (I
think) an important extension, it might be nice if the hook was simply added to
Mediawiki?

Semantic Mediawiki instructions:

Edit the file [wikipath]/includes/Parser.php. Insert the line

"wfRunHooks( 'InternalParseBeforeLinks', array( &$this, &$text, null ) );"
in the method "internalParse" right after the line
"$text = $this->replaceVariables( $text, $args );"

Version: unspecified
Severity: enhancement

Details

Reference
bz8578

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:32 PM
bzimport set Reference to bz8578.
bzimport added a subscriber: Unknown Object (MLST).

leon wrote:

I'm going to do that, but what should I pass null for?

You can actually safely remove the "null", this was just some legacy that
sneaked in.

We'd be obliged to see it happen :)