Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Recent change to Imagemap extension.

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


michael.daly at kayakwiki

Apr 20, 2008, 3:28 PM

Post #1 of 4 (380 views)
Permalink
Recent change to Imagemap extension.

I've been looking at the imagemap extension and noticed the following
change in Imagemap_body.php:

was:

line 74 - $imageHTML = $parser->makeImage( $imageTitle, $options );

now:

line 70 - $imageHTML = $parser->makeImage( $imageTitle, $options );
line 71 - $parser->mOutput->addImage( $imageTitle->getDBkey() );

explanation in SVN:

* Have ImageMap add images to parserout like parser does. Not doing so
also causes FlaggedRevs to think the review metadata was incomplete.

However, the added line is already present at:

line 292 - # Register links
line 293 - $parser->mOutput->addImage( $imageTitle->getDBkey() );


I can't see an obvious reason for the line to appear twice and it seems
redundant. The change seems to have been made by Aaron. Can he or
someone clarify - am I missing something?

Mike




_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jschulz_4587 at msn

Apr 20, 2008, 6:04 PM

Post #2 of 4 (357 views)
Permalink
Re: Re cent change to Imagemap extension. [In reply to]

After testing, flaggedrevs definitely has problems after removing the extra
line. Though it does seem like it should be redundant. I'll look like into
it.


Michael Daly-5 wrote:
>
> I've been looking at the imagemap extension and noticed the following
> change in Imagemap_body.php:
>
> was:
>
> line 74 - $imageHTML = $parser->makeImage( $imageTitle, $options );
>
> now:
>
> line 70 - $imageHTML = $parser->makeImage( $imageTitle, $options );
> line 71 - $parser->mOutput->addImage( $imageTitle->getDBkey() );
>
> explanation in SVN:
>
> * Have ImageMap add images to parserout like parser does. Not doing so
> also causes FlaggedRevs to think the review metadata was incomplete.
>
> However, the added line is already present at:
>
> line 292 - # Register links
> line 293 - $parser->mOutput->addImage( $imageTitle->getDBkey() );
>
>
> I can't see an obvious reason for the line to appear twice and it seems
> redundant. The change seems to have been made by Aaron. Can he or
> someone clarify - am I missing something?
>
> Mike
>
>
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>

--
View this message in context: http://www.nabble.com/Recent-change-to-Imagemap-extension.-tp16799716p16801039.html
Sent from the Wikipedia Developers mailing list archive at Nabble.com.


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jschulz_4587 at msn

Apr 20, 2008, 6:15 PM

Post #3 of 4 (361 views)
Permalink
Re: Re cent change to Imagemap extension. [In reply to]

OK, I removed the redundant lower line.


Michael Daly-5 wrote:
>
> I've been looking at the imagemap extension and noticed the following
> change in Imagemap_body.php:
>
> was:
>
> line 74 - $imageHTML = $parser->makeImage( $imageTitle, $options );
>
> now:
>
> line 70 - $imageHTML = $parser->makeImage( $imageTitle, $options );
> line 71 - $parser->mOutput->addImage( $imageTitle->getDBkey() );
>
> explanation in SVN:
>
> * Have ImageMap add images to parserout like parser does. Not doing so
> also causes FlaggedRevs to think the review metadata was incomplete.
>
> However, the added line is already present at:
>
> line 292 - # Register links
> line 293 - $parser->mOutput->addImage( $imageTitle->getDBkey() );
>
>
> I can't see an obvious reason for the line to appear twice and it seems
> redundant. The change seems to have been made by Aaron. Can he or
> someone clarify - am I missing something?
>
> Mike
>
>
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>

--
View this message in context: http://www.nabble.com/Recent-change-to-Imagemap-extension.-tp16799716p16801042.html
Sent from the Wikipedia Developers mailing list archive at Nabble.com.


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


michael.daly at kayakwiki

Apr 20, 2008, 9:10 PM

Post #4 of 4 (360 views)
Permalink
Re: Re cent change to Imagemap extension. [In reply to]

Voice of All wrote:
> OK, I removed the redundant lower line.

Great - thanks!

Mike




_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.