cache object.
* (bug 6299) Maintain parser's revision ID across recursive calls to fix
{{REVISIONID}} when Cite extension is used
+* (bug 6622) Removed deprecated function image::newFromTitle
== Languages updated ==
array_push( $children_start_char, $wgContLang->convert( $sortkey ) ) ;
} elseif( $showGallery && $title->getNamespace() == NS_IMAGE ) {
// Show thumbnails of categorized images, in a separate chunk
+ $anImage = new Image($title);
if( $flip ) {
- $ig->insert( Image::newFromTitle( $title ) );
+ $ig->insert( $anImage );
} else {
- $ig->add( Image::newFromTitle( $title ) );
+ $ig->add( $anImage );
}
+ unset($anImage);
} else {
// Page in this category
array_push( $articles, $sk->makeSizeLinkObj( $x->page_len, $title, $wgContLang->convert( $title->getPrefixedText() ) ) ) ;
$extension="wiki";
} elseif($this->mMode=="file") {
$type="Edit file";
- $image = Image::newFromTitle( $this->mTitle );
+ $image = new Image( $this->mTitle );
$img_url = $image->getURL();
if(strpos($img_url,"://")) {
$url = $img_url;
}
}
- /**
- * Obsolete factory function, use constructor
- * @deprecated
- */
- function newFromTitle( $title ) {
- return new Image( $title );
- }
-
function Image( $title ) {
if( !is_object( $title ) ) {
throw new MWException( 'Image constructor given bogus title.' );
$s .= $this->makeKnownLinkHolder( $nt, $text, '', $trail, $prefix );
continue;
} elseif( $ns == NS_IMAGE ) {
- $img = Image::newFromTitle( $nt );
+ $img = new Image( $nt );
if( $img->exists() ) {
// Force a blue link if the file exists; may be a remote
// upload on the shared repository, and we want to see its
$ut = $s->img_user_text;
$nt = Title::newFromText( $name, NS_IMAGE );
- $img = Image::newFromTitle( $nt );
+ $img = new Image( $nt );
$ul = $sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
$gallery->add( $img, "$ul<br />\n<i>".$wgLang->timeanddate( $s->img_timestamp, true )."</i><br />\n" );