From: Brion Vibber Date: Mon, 1 Sep 2003 10:03:47 +0000 (+0000) Subject: Split image description page-specific functions to ImagePage child X-Git-Tag: 1.1.0~294 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=d9059af5fce967f29c0271e7ed87f13b326bad73;p=lhc%2Fweb%2Fwiklou.git Split image description page-specific functions to ImagePage child class of Article. --- diff --git a/wiki.phtml b/wiki.phtml index 98895a2c16..d79da00f17 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -51,7 +51,14 @@ if ( -1 == $wgTitle->getNamespace() ) { } } else { - $wgArticle = new Article(); + switch( $wgTitle->getNamespace() ) { + case 6: + include_once( "$IP/ImagePage.php" ); + $wgArticle = new ImagePage( $wgTitle ); + break; + default: + $wgArticle = new Article( $wgTitle ); + } switch( $action ) { case "view":