From 5721fe68c0ef2cd830715202f8886c6bb46fdc91 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 12 Jul 2006 06:39:55 +0000 Subject: [PATCH] Restore factory function to avoid gratuitously breaking extensions for no reason whatsoever what the heck --- includes/Image.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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.' ); -- 2.20.1