Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3469
parser_makeImage_patch.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:30 PM
2014-11-21 21:30:14 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
parser_makeImage_patch.txt
View Options
Index: includes/Parser.php
===================================================================
--- includes/Parser.php (revision 22112)
+++ includes/Parser.php (working copy)
@@ -1738,13 +1738,7 @@
if ( $ns == NS_IMAGE ) {
wfProfileIn( "$fname-image" );
if ( !wfIsBadImage( $nt->getDBkey(), $this->mTitle ) ) {
- # recursively parse links inside the image caption
- # actually, this will parse them in any other parameters, too,
- # but it might be hard to fix that, and it doesn't matter ATM
- $text = $this->replaceExternalLinks($text);
- $text = $this->replaceInternalLinks($text);
-
- # cloak any absolute URLs inside the image markup, so replaceExternalLinks() won't touch them
+ # cloak any absolute URLs inside the image markup, so replaceExternalLinks() won't touch them, not sure this is necessary
$s .= $prefix . $this->armorLinks( $this->makeImage( $nt, $text ) ) . $trail;
$this->mOutput->addImage( $nt->getDBkey() );
@@ -4422,7 +4416,18 @@
# * bottom
# * text-bottom
-
+ if($this->mOptions->getUseDynamicDates()) {
+ $df =& DateFormatter::getInstance();
+ $options = $df->reformat( $this->mOptions->getDateFormat(), $options );
+ }
+ $options = $this->doAllQuotes( $options );
+
+ # recursively parse links inside the image caption
+ # actually, this will parse them in any other parameters, too,
+ # but it might be hard to fix that, and it doesn't matter ATM
+ $options = $this->replaceExternalLinks($options);
+ $options = $this->replaceInternalLinks($options);
+
$part = array_map( 'trim', explode( '|', $options) );
$mwAlign = array();
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3037
Default Alt Text
parser_makeImage_patch.txt (1 KB)
Attached To
Mode
T10835: ImageMap does not accept links in the image caption
Attached
Detach File
Event Timeline
Log In to Comment