dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e58b76b
)
Restore factory function to avoid gratuitously breaking extensions for no reason...
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 12 Jul 2006 06:39:55 +0000
(06:39 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 12 Jul 2006 06:39:55 +0000
(06:39 +0000)
includes/Image.php
patch
|
blob
|
history
diff --git
a/includes/Image.php
b/includes/Image.php
index
c5cf3e9
..
fd0f8a3
100644
(file)
--- 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.' );