diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /includes/media/XMPInfo.php | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'includes/media/XMPInfo.php')
-rw-r--r-- | includes/media/XMPInfo.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/includes/media/XMPInfo.php b/includes/media/XMPInfo.php index e0a491cb..1d8d7771 100644 --- a/includes/media/XMPInfo.php +++ b/includes/media/XMPInfo.php @@ -31,18 +31,9 @@ class XMPInfo { * @return array XMP item configuration array. */ public static function getItems() { - if ( !self::$ranHooks ) { - // This is for if someone makes a custom metadata extension. - // For example, a medical wiki might want to decode DICOM xmp properties. - Hooks::run( 'XMPGetInfo', array( &self::$items ) ); - self::$ranHooks = true; // Only want to do this once. - } - return self::$items; } - static private $ranHooks = false; - /** * XMPInfo::$items keeps a list of all the items * we are interested to extract, as well as @@ -57,7 +48,7 @@ class XMPInfo { * * mode - What type of item (self::MODE_SIMPLE usually, see above for * all values). * * validate - Method to validate input. Could also post-process the - * input. A string value is assumed to be a static method of + * input. A string value is assumed to be a method of * XMPValidate. Can also take a array( 'className', 'methodName' ). * * choices - Array of potential values (format of 'value' => true ). * Only used with validateClosed. |