From: MatmaRex Date: Mon, 24 Jun 2013 18:38:48 +0000 (+0200) Subject: Add broken-file-category for file links inside X-Git-Tag: 1.31.0-rc.0~19348^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=49ae06784186f6124e0e25296acbc95bd75c52b8;p=lhc%2Fweb%2Fwiklou.git Add broken-file-category for file links inside Bug: 50119 Change-Id: I7d06f48e53df43213bda52feec0d3f390e10f742 --- diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 43cf7f6c6a..5b45404065 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -286,6 +286,10 @@ class ImageGallery { # We're dealing with a non-image, spit out the name and be done with it. $thumbhtml = "\n\t\t\t" . '
' . htmlspecialchars( $nt->getText() ) . '
'; + + if ( $this->mParser instanceof Parser ) { + $this->mParser->addTrackingCategory( 'broken-file-category' ); + } } elseif ( $this->mHideBadImages && wfIsBadImage( $nt->getDBkey(), $this->getContextTitle() ) ) { # The image is blacklisted, just show it as a text link. $thumbhtml = "\n\t\t\t" . '
' .