mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Fix <noautolinks> tag in parse-on-render mode.
- Fix: <noautolinks> tag did not work in parse-on-render mode.
This commit is contained in:
@ -126,7 +126,10 @@ class Extension {
|
||||
* See https://www.mediawiki.org/wiki/Manual:Tag_extensions#Example
|
||||
*/
|
||||
public static function doNoautolinksTag( $input, array $args, \Parser $parser, \PPFrame $frame ) {
|
||||
return $parser->recursiveTagParse( $input, $frame );
|
||||
Linker::lock();
|
||||
$result = $parser->recursiveTagParse( $input, $frame );
|
||||
Linker::unlock();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -138,7 +141,9 @@ class Extension {
|
||||
$config = new Config();
|
||||
$linker = new Linker( $config );
|
||||
$source = Source::createFromParserAndText( $parser, $input, $config );
|
||||
Linker::unlock();
|
||||
$result = $linker->linkContent( $source );
|
||||
Linker::lock();
|
||||
if ( $result ) {
|
||||
return $parser->recursiveTagParse( $result, $frame );
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user