http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76232

Revision: 76232
Author:   bawolff
Date:     2010-11-07 05:27:11 +0000 (Sun, 07 Nov 2010)
Log Message:
-----------
follow-up to r76231 - For some reason I forgot to test before hitting commit 
and made some stupid typos.

Modified Paths:
--------------
    branches/img_metadata/phase3/docs/hooks.txt
    branches/img_metadata/phase3/includes/media/XMPInfo.php

Modified: branches/img_metadata/phase3/docs/hooks.txt
===================================================================
--- branches/img_metadata/phase3/docs/hooks.txt 2010-11-07 05:08:48 UTC (rev 
76231)
+++ branches/img_metadata/phase3/docs/hooks.txt 2010-11-07 05:27:11 UTC (rev 
76232)
@@ -1899,11 +1899,11 @@
 
 'XMPGetInfo': Called when obtaining the list of XMP tags to extract. Can be 
used to add
        additional tags to extract.
-$items: Array containing information on which items to extract. See XMPInfo 
for details on the format.
+&$items: Array containing information on which items to extract. See XMPInfo 
for details on the format.
 
 'XMPGetResults': Called just before returning the results array of parsing xmp 
data. Can be
        used to post-process the results.
-$data: Array of metadata sections (such as $data['xmp-general']) each section 
is an array of
+&$data: Array of metadata sections (such as $data['xmp-general']) each section 
is an array of
        metadata tags returned (each tag is either a value, or an array of 
values).
 
 More hooks might be available but undocumented, you can execute

Modified: branches/img_metadata/phase3/includes/media/XMPInfo.php
===================================================================
--- branches/img_metadata/phase3/includes/media/XMPInfo.php     2010-11-07 
05:08:48 UTC (rev 76231)
+++ branches/img_metadata/phase3/includes/media/XMPInfo.php     2010-11-07 
05:27:11 UTC (rev 76232)
@@ -10,16 +10,16 @@
         * @return Array XMP item configuration array.
        */
        public static function getItems ( ) {
-               if( !self::ranHooks ) {
+               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.
                        wfRunHooks('XMPGetInfo', Array(&self::$items));
-                       self::ranHooks = true; // Only want to do this once.
+                       self::$ranHooks = true; // Only want to do this once.
                }
                return self::$items;
        }
 
-       static private ranHooks = false;
+       static private $ranHooks = false;
 
        /**
        * XMPInfo::$items keeps a list of all the items


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to