From: Brion Vibber Date: Wed, 12 Jul 2006 06:39:55 +0000 (+0000) Subject: Restore factory function to avoid gratuitously breaking extensions for no reason... X-Git-Tag: 1.31.0-rc.0~56282 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=5721fe68c0ef2cd830715202f8886c6bb46fdc91;p=lhc%2Fweb%2Fwiklou.git Restore factory function to avoid gratuitously breaking extensions for no reason whatsoever what the heck --- diff --git a/includes/Image.php b/includes/Image.php index c5cf3e9e57..fd0f8a3ccb 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -66,6 +66,14 @@ class Image } } + /** + * 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.' );