Tim Starling
fd5ed58955
Run the post-internalParse() parser stages on the output of makeImage() before attempting to parse it as XHTML, in particular: unstrip, RLH and normalizeCharReferences(). Fixes invalid character references as per complaint on wikitech-l.
2008-09-16 02:17:55 +00:00
Aryeh Gregor
0ad5f18f00
[ImageMap] No position: relative if unneeded
...
This helps work around bug 9126 a little. Suggested by Splarka.
2008-09-15 15:26:11 +00:00
Tim Starling
e8b86326ba
It's incorrect to use both Sanitizer::escapeHtmlAllowEntities() and Parser::recursiveTagParse(). Parser::recursiveTagParse() accepts plain wikitext as input, and will handle any invalid entities itself.
...
Note that ideally, ImageMap would parse the image options in the same way as the parser does image links. This would mean replaceVariables(), removeHTMLtags(), doTableStuff(), <hr/>, doDoubleUnderscore(), doHeadings(), DateFormatter::reformat(), doAllQuotes(), replaceExternalLinks() and replaceInternalLinks2(). But recursiveTagParse() is almost the same anyway: only doMagicLinks() and formatHeadings() are added, and RIL/REL are done in the opposite order.
2008-09-15 07:10:40 +00:00
Alex Z.
a7a3bb17b6
Sanitizer::escapeHtmlAllowEntities() only exists in 1.14, so this is unnecessary.
2008-09-09 22:31:06 +00:00
Alex Z.
7ebc0b3151
Actually parse the options so links and templates will work in captions, code adapted from Cite extension.
2008-09-09 22:12:28 +00:00
Alex Z.
c69b88dab7
modify r40671, use Sanitizer::escapeHtmlAllowEntities instead to allow & and the like.
2008-09-09 20:14:14 +00:00
Alex Z.
196385c1d4
(bug 15289) '&' and '<' in captions no longer cause ImageMap to fail, converted with htmlspecialchars.
2008-09-09 19:39:03 +00:00
Chad Horohoe
b310a721d4
Make ImageMap behave and obey the Bad image list.
2008-08-02 03:23:05 +00:00
Chad Horohoe
bb73c9b697
Ignore that...I'm an idiot.
2008-06-16 15:08:56 +00:00
Chad Horohoe
129a7a6e11
Helps to declare the global.
2008-06-16 15:02:28 +00:00
Chad Horohoe
a9bfe4753f
No point in allowing external images in an ImageMap if we don't allow external images period.
2008-06-16 14:58:52 +00:00
Aaron Schulz
435c410e30
E_STRICT. Even though manual says it can be called statically, it still spews notices anyway...
2008-05-14 23:12:52 +00:00
Brion Vibber
911f906650
suppress deprecated warning by using wfFindFile() if available instead of Image::newFromTitle
2008-04-26 18:24:23 +00:00
Aaron Schulz
899287ffaa
Remove redundant line
2008-04-21 01:14:51 +00:00
Aaron Schulz
1e67927711
* Clean up some of the version metadata in FlaggedRevs.
...
* Have ImageMap add images to parserout like parser does. Not doing so also causes FlaggedRevs to think the review metadata was incomplete.
2008-03-09 10:37:04 +00:00
Tim Starling
ae56a192c3
Bug 12806: fix double-escaping in external links
2008-01-27 01:58:39 +00:00
Brion Vibber
acf2a86d63
* (bug 12651) Don't record special:, media:, and interwiki links in ImageMap in the internal link tables
2008-01-16 06:08:01 +00:00
Siebrand Mazeland
51fe46fae7
* use wfLoadExtensionMessages for ImageMap
...
* Delay message loading
* add version in extension credits
* update Translate extension
2008-01-11 08:41:57 +00:00
Raimond Spekking
5354f591e9
* Use class=error for error messages to be consistent with other error messages.
2007-08-07 21:48:01 +00:00
Ilmari Karonen
8cae4703e6
kluge to handle [[#Fragment]] links, should really fix getLocalURL() in Title.php to return an empty string in this case
2007-08-07 17:01:38 +00:00
Aryeh Gregor
8e63292a31
Extensions too!
2007-06-29 01:36:09 +00:00
Tim Starling
629b3a6b0b
Removed $wgImageMapAllowExternalLinks, feature enabled unconditionally. Not sure why you wouldn't want that.
2007-06-23 11:01:10 +00:00
Tim Starling
7d51767fd2
Used Image::newFromTitle() as per Brion's suggestion
2007-05-30 15:38:23 +00:00
Tim Starling
2331e0b099
Pre-emptively migrated extensions to the filerepo-work file creation method, with backwards compatibility. Fixed the indenting in SmoothGallery.
2007-05-28 01:44:57 +00:00
River Tarnell
cb320b6585
(bug 9295) ImageMap extension produces PHP fatal error when given invalid link title
2007-05-08 14:53:14 +00:00
Raimond Spekking
b14e121c4e
* Changing $wgImageMapAllowExternLink -> $wgImageMapAllowExternalLinks
...
per hint of Rob Church at wikitech-l
* ooops, not every ImageMap use external links...
2007-04-19 06:00:19 +00:00
Raimond Spekking
eaa7c09110
* (bug 8746) Support for external links
...
$wgImageMapAllowExternLink = false per default -> no risk for WMF live sites
2007-04-18 09:14:41 +00:00
Raimond Spekking
3cdc545b1b
* (bug 8925) Preserve canonical (english) desc types
2007-04-17 11:59:53 +00:00
Raimond Spekking
21aa297f78
* (bug 8603) Allow the "default" parameter as minimum
2007-04-17 09:18:42 +00:00
Raimond Spekking
572b718e4d
* (bug 8917) add section anchor to link
2007-04-16 19:56:36 +00:00
Brion Vibber
f7c27a1ba2
* (bug 9236) Reset $coords to empty when tokenizing coordinates for a new polygon
2007-03-09 17:35:10 +00:00
Brion Vibber
ccfd221a3c
slightly prettier code
2007-01-15 19:44:30 +00:00
Brion Vibber
3e45f2f10c
* (bug 8635) Round scaled coordinates, fixes Opera incompatibility
2007-01-15 19:42:20 +00:00
Rob Church
5df6bbb122
(bug 8585) Support multiple language translations
2007-01-15 06:01:39 +00:00
Tim Starling
8c2fb9b3d3
Portable "default" links, to support clickable images.
2007-01-05 16:44:59 +00:00
Tim Starling
284a684cea
Description icon link, area link title attributes
2006-12-13 05:55:37 +00:00
Tim Starling
778eb8eeb4
Bug 7821
2006-11-27 03:13:46 +00:00
Tim Starling
b60e7d8680
HTML image map extension. Not quite complete, but usable as it is.
2006-11-01 06:34:42 +00:00