X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcache%2FLinkCache.php;h=6925df90131c1a8d280a08722d451ed9ca44168a;hb=00a57c77e31755e2c365a57118bd6ceca7507e3d;hp=95b15b8b14a468e84d97d578435803bf4a6de2ce;hpb=ba8a835dcb3de335a04c81ebe8980a858d478cae;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 95b15b8b14..6925df9013 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -87,7 +87,7 @@ class LinkCache { /** * @param string $title - * @return array|int + * @return int */ public function getGoodLinkID( $title ) { if ( array_key_exists( $title, $this->mGoodLinks ) ) { @@ -129,10 +129,10 @@ class LinkCache { * @param int $len Text's length * @param int $redir Whether the page is a redirect * @param int $revision Latest revision's ID - * @param int $model Latest revision's content model ID + * @param string|null $model Latest revision's content model ID */ public function addGoodLinkObj( $id, $title, $len = -1, $redir = null, - $revision = 0, $model = 0 + $revision = 0, $model = null ) { $dbkey = $title->getPrefixedDBkey(); $this->mGoodLinks[$dbkey] = (int)$id; @@ -140,7 +140,7 @@ class LinkCache { 'length' => (int)$len, 'redirect' => (int)$redir, 'revision' => (int)$revision, - 'model' => (int)$model + 'model' => $model ? (string)$model : null, ); }