summaryrefslogtreecommitdiff
path: root/extensions/ParserFunctions/ParserFunctions_body.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/ParserFunctions/ParserFunctions_body.php')
-rw-r--r--extensions/ParserFunctions/ParserFunctions_body.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/ParserFunctions/ParserFunctions_body.php b/extensions/ParserFunctions/ParserFunctions_body.php
index 967e8339..3567cc58 100644
--- a/extensions/ParserFunctions/ParserFunctions_body.php
+++ b/extensions/ParserFunctions/ParserFunctions_body.php
@@ -360,9 +360,6 @@ class ExtParserFunctions {
return $else;
} else {
$pdbk = $title->getPrefixedDBkey();
- if ( !$parser->incrementExpensiveFunctionCount() ) {
- return $else;
- }
$lc = LinkCache::singleton();
$id = $lc->getGoodLinkID( $pdbk );
if ( $id != 0 ) {
@@ -372,6 +369,9 @@ class ExtParserFunctions {
$parser->mOutput->addLink( $title, 0 );
return $else;
}
+ if ( !$parser->incrementExpensiveFunctionCount() ) {
+ return $else;
+ }
$id = $title->getArticleID();
$parser->mOutput->addLink( $title, $id );
if ( $id ) {