X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=blobdiff_plain;f=includes%2FTitle.php;h=b996defffd4345d0beb2164c2acd67d80ecafcce;hb=3801cd022f89f460729e1dbee6f28c98246a19cf;hp=3a5b62b333ea9d6e956d433c09dc7f0afe8a2e73;hpb=d58f0155df6b2cec1d8d691d877f19c0dc0a873d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index 3a5b62b333..b996defffd 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -908,7 +908,9 @@ class Title implements LinkTarget { * @return string Content model id */ public function getContentModel( $flags = 0 ) { - if ( !$this->mContentModel && $this->getArticleID( $flags ) ) { + if ( ( !$this->mContentModel || $flags === Title::GAID_FOR_UPDATE ) && + $this->getArticleID( $flags ) + ) { $linkCache = LinkCache::singleton(); $linkCache->addLinkObj( $this ); # in case we already had an article ID $this->mContentModel = $linkCache->getGoodLinkFieldObj( $this, 'model' );