X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTitle.php;h=9ada4f314d0a0e3620df76928227ce0cabe8c870;hb=a6a6d55c5397153054fda3aedc570b9d3e31110e;hp=aef696fbc845fd12236b78db55ad6b32bdc1a431;hpb=12f7ff32fcd46e8be4e336f5d92171f05f6abf26;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index aef696fbc8..9ada4f314d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1008,10 +1008,8 @@ class Title { */ public function getNsText() { if ( $this->isExternal() ) { - // This probably shouldn't even happen. ohh man, oh yuck. - // But for interwiki transclusion it sometimes does. - // Shit. Shit shit shit. - // + // This probably shouldn't even happen, + // but for interwiki transclusion it sometimes does. // Use the canonical namespaces if possible to try to // resolve a foreign namespace. if ( MWNamespace::exists( $this->mNamespace ) ) { @@ -1420,6 +1418,7 @@ class Title { * Deprecated for public use, use Title::makeTitle() with fragment parameter. * Still in active use privately. * + * @private * @param string $fragment Text */ public function setFragment( $fragment ) { @@ -4383,7 +4382,7 @@ class Title { /** * Updates page_touched for this page; called from LinksUpdate.php * - * @param integer $purgeTime TS_MW timestamp [optional] + * @param string $purgeTime [optional] TS_MW timestamp * @return bool True if the update succeeded */ public function invalidateCache( $purgeTime = null ) { @@ -4418,12 +4417,9 @@ class Title { * on the number of links. Typically called on create and delete. */ public function touchLinks() { - $u = new HTMLCacheUpdate( $this, 'pagelinks' ); - $u->doUpdate(); - + DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this, 'pagelinks' ) ); if ( $this->getNamespace() == NS_CATEGORY ) { - $u = new HTMLCacheUpdate( $this, 'categorylinks' ); - $u->doUpdate(); + DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this, 'categorylinks' ) ); } }