Index: branches/img_metadata/phase3/docs/hooks.txt |
— | — | @@ -1899,11 +1899,11 @@ |
1900 | 1900 | |
1901 | 1901 | 'XMPGetInfo': Called when obtaining the list of XMP tags to extract. Can be used to add |
1902 | 1902 | additional tags to extract. |
1903 | | -$items: Array containing information on which items to extract. See XMPInfo for details on the format. |
| 1903 | +&$items: Array containing information on which items to extract. See XMPInfo for details on the format. |
1904 | 1904 | |
1905 | 1905 | 'XMPGetResults': Called just before returning the results array of parsing xmp data. Can be |
1906 | 1906 | used to post-process the results. |
1907 | | -$data: Array of metadata sections (such as $data['xmp-general']) each section is an array of |
| 1907 | +&$data: Array of metadata sections (such as $data['xmp-general']) each section is an array of |
1908 | 1908 | metadata tags returned (each tag is either a value, or an array of values). |
1909 | 1909 | |
1910 | 1910 | More hooks might be available but undocumented, you can execute |
Index: branches/img_metadata/phase3/includes/media/XMPInfo.php |
— | — | @@ -10,16 +10,16 @@ |
11 | 11 | * @return Array XMP item configuration array. |
12 | 12 | */ |
13 | 13 | public static function getItems ( ) { |
14 | | - if( !self::ranHooks ) { |
| 14 | + if( !self::$ranHooks ) { |
15 | 15 | // This is for if someone makes a custom metadata extension. |
16 | 16 | // For example, a medical wiki might want to decode DICOM xmp properties. |
17 | 17 | wfRunHooks('XMPGetInfo', Array(&self::$items)); |
18 | | - self::ranHooks = true; // Only want to do this once. |
| 18 | + self::$ranHooks = true; // Only want to do this once. |
19 | 19 | } |
20 | 20 | return self::$items; |
21 | 21 | } |
22 | 22 | |
23 | | - static private ranHooks = false; |
| 23 | + static private $ranHooks = false; |
24 | 24 | |
25 | 25 | /** |
26 | 26 | * XMPInfo::$items keeps a list of all the items |