crystalsvg theme.
* Fixed a bug in Special:Newimages that made it impossible to search for '0'
* (bug 2095) Triple-closing-bracket thing partly fixed
+* (bug 2110) "noarticletext" should not display on Image page for "sharedupload" media
=== Caveats ===
return substr($r, 0, -3) . '|}';
}
+ /**
+ * Overloading Article's getContent method.
+ * Omit noarticletext if sharedupload
+ *
+ * @param $noredir If true, do not follow redirects
+ */
+ function getContent( $noredir )
+ {
+ if ( $this->img && $this->img->fromSharedDirectory && 0 == $this->getID() ) {
+ return '';
+ }
+ return Article::getContent( $noredir );
+ }
+
function openShowImage()
{
global $wgOut, $wgUser, $wgImageLimits, $wgRequest,