Commit graph

694 commits

Author SHA1 Message Date
Niklas Laxström
7818d542f0 * (bug 6300) Bug fixes for sr: variants
* Patch from Robert Stojnic
2006-06-16 22:30:39 +00:00
Rob Church
907125da5c Introduce {{NUMBEROFADMINS}} magic word 2006-06-16 13:58:42 +00:00
Magnus Manske
7f2155fa9e Bug 6031 (feature request for __NOGALLERY__ on category pages) fixed 2006-06-13 11:37:09 +00:00
Magnus Manske
17dddf5313 bug 2700 (preSaveTransform not working in gallery links) fixed 2006-06-13 10:11:12 +00:00
Rob Church
6a5d22374a (bug 5932) Introduce {{PAGESINNAMESPACE}} magic word 2006-06-12 12:38:41 +00:00
Brion Vibber
a5ac8a50c2 HTML normalization: use double-quotes on RFC and PMID quotes for consistency with upcoming normalizer's output 2006-06-12 06:04:51 +00:00
Brion Vibber
3487221d36 * Fix regression(?) in behavior of initial-whitespace-pre in <center> 2006-06-09 21:59:26 +00:00
Niklas Laxström
4c085983f2 * {{PLURAL}} can now take up to five forms. Needed for some languages 2006-06-08 19:42:07 +00:00
Rob Church
9b5ddbb646 (bug 5945) Introduce {{CONTENTLANGUAGE}} magic word 2006-06-08 13:30:35 +00:00
Brion Vibber
bceb7558ad * (bug 6230) Regression fix: <nowiki> in [URL link text] 2006-06-07 09:18:34 +00:00
Tim Starling
02547dac72 Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date. 2006-06-07 06:40:24 +00:00
Brion Vibber
02ff859a87 * (bug 3837) Leave <center> as is instead of doing an unsafe text replacement
to <div class="center">. <center> is perfectly valid in the target doctype
  (XHTML 1.0 Transitional), while the replacement didn't catch all cases and
  could even result in invalid output from valid input.
2006-06-06 23:50:16 +00:00
Brion Vibber
9e56a35f7c * (bug 3202) Attributes now allowed on <pre> tags
* Sanitizer::validateTagAttributes now available to discard illegal/unsafe
  attribute values from an array.
2006-06-06 22:56:38 +00:00
Domas Mituzas
bb5a77358a AutoLoad ImageGalery 2006-06-06 11:46:16 +00:00
Domas Mituzas
e2ae8925ff AutoLoad Math.php 2006-06-06 10:00:53 +00:00
Brion Vibber
939ddd8793 * (bug 2587) Fix for section editing with comment prefix
* (bug 2607) Fix for section editing with mix of wiki and HTML headings
* (bug 3342) Fix for section editing with headings wrapped in <noinclude>
* (bug 3476) Fix for section editing with faux headings in extensions
* (bug 5272) Fix for section editing with HTML-heading subsections
* Fix for bogus wiki headings improperly detected with following text
* Fix for HTML headings improperly not detected with preceding/following text
* Section extraction and replacement functions merged into one implementation
  on the Parser object, so they can't get out of sync with each other.
2006-06-06 00:51:34 +00:00
Brion Vibber
3cbc209ac2 * (bug 5021) Transcluding the same special page twice now works 2006-06-04 02:41:52 +00:00
Brion Vibber
622823a595 * Add <ol> to the list of block elements for doBlockLevels; avoids <p>s being interspersed into your ordered lists.
Since this doesn't have larger consequences, I'm checking this in before the bigger Sanitizer parts of the bug 5497 fix.
2006-06-04 02:06:24 +00:00
Brion Vibber
076c412e80 Some more microoptimizations on the new definition list code. Now only about 4x slower than the old code instead of 6x. 2006-06-02 23:56:19 +00:00
Brion Vibber
ff807a12ad * Improve handling of ;: definition list construct with overlapping or nested HTML tags 2006-06-02 20:54:34 +00:00
Brion Vibber
2a368380cf * (bug 6164) Fix regression with <gallery> resetting <ref> state 2006-06-01 21:22:05 +00:00
Brion Vibber
3da7dcf91d Fix regressions in parser with incomplete tag stripping, plus some old bugs:
* (bug 885) Pre-save transform no longer silently appends close tags
* Pre-save transform no longer changes the case of close tags
2006-06-01 19:38:14 +00:00
Brion Vibber
1bdddfa608 Regression with funny spellings of <matH> 2006-06-01 08:31:12 +00:00
Brion Vibber
25e285f0af Fix regression with unclosed extension tags.
Behavior is still silly (PST adds an end tag) but matches prior behavior until fix is made.
2006-06-01 08:24:22 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Brion Vibber
6711d4714c Fix for DynamicPageList, which registers a mixed-case tag name.
The new system needs tag names to be case-folded internally so
that tags are properly case-insensitive.
2006-06-01 06:41:32 +00:00
Brion Vibber
48b0722fd9 * (bug 5384) Fix <!-- comments --> in <ref> extension
* Nesting of different tag extensions and comments should now work more
  consistently and more safely. A cleaner, one-pass tag strip lets the
  'outer' tag either take source (<nowiki>-style) or pass it down to
  further parsing (<ref>-style). There should no longer be surprise
  expansion of foreign extensions inside HTML output, or differences
  in behavior based on the order tags are loaded.
2006-06-01 06:16:55 +00:00
Rob Church
38f609789b (bug 3926) Introduce {{#language:}} magic word 2006-05-31 01:41:36 +00:00
Brion Vibber
6ec6ce7da7 * (bug 6133) Update strip state as we work. This mostly fixes extensions
used in Cite.php <ref> tags when Tidy is on.
2006-05-29 23:02:21 +00:00
Rob Church
d38df9ce99 (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias) 2006-05-28 21:30:43 +00:00
Brion Vibber
f6a581a9b9 Had to revert the changes in r14424 / r14427 due to massive side-effect breakage on zh.wikipedia.org:
* Move parameter replacement before brace transformations in most of the
  wfMsg() family (except for wfMsgHtml). This allows things like {{plural:}},
  {{urlencode:}}, and {{fullurl:}} to be used in most cases correctly.
  The content or UI language will be used accordingly for (forContent)?.
* Work around glitch with the above in {{int:}}; skip redundant transformations,
  allow the including parser to do it.
* Fix {{int:}} to use content language, so it won't break caches and links
  tables and randomly include data from the wrong language.

Uncertain what the cause is of the breakage, I have a hard time duplicating it
and it looks massively wrong (should not be possible). Failure on Parser.php
line 590, claims var not array, but the check two lines above ensures that
it is first...
2006-05-28 09:31:04 +00:00
Brion Vibber
2690a3fe36 Change the method used to reverse arrays on unstrip of nowiki and html.
Did similar for other unstrip a while ago because it started mysteriously
blowing up; now getting mysteriuos blowups on these too, not sure why.
Only seems ot be affecting zhwiki for some reason
2006-05-28 09:07:42 +00:00
Brion Vibber
9ff8c089b7 * Work around glitch with the above in {{int:}}; skip redundant transformations,
allow the including parser to do it.
* Fix {{int:}} to use content language, so it won't break caches and links
  tables and randomly include data from the wrong language.
2006-05-28 01:56:21 +00:00
Brion Vibber
aa44657459 * (bug 6102) For consistency with other markup, normalize all HTML-encoded
character entities in URLs, not just ampersands. This allows use of eg
  &#61; when making URLs for template parameters.
2006-05-27 00:48:07 +00:00
Brion Vibber
79181a321b * Increase robustness of parser placeholders; fixes some glitches when adjacent to identifier-ish constructs such as URLs.
* Shut up the parser test whining about files in a temp directory.
2006-05-26 12:11:54 +00:00
Antoine Musso
d1a9b7c02a Fix #6065: remove underscores when using MAG_NAMESPACE & MAG_TALKSPACE
use MAG_NAMESPACEE & MAG_TALKSPACEE if you want URL encoded text.
2006-05-24 19:55:48 +00:00
Rob Church
b95074f87c Add {{CURRENTTIMESTAMP}} magic word 2006-05-24 15:55:01 +00:00
Brion Vibber
e521f61df8 Broke some TOC interaction with <ref> in 14350; fixed. 2006-05-23 10:01:45 +00:00
Brion Vibber
54005e7a9d * Reordered wiki table handling and __TOC__ extraction in the parser to better handle some overlapping tag cases.
* Only the first __TOC__ is now turned into a TOC.

The table change doesn't disrupt either the parser tests or the en.wikipedia main page. Hopefully it won't break other real content...
2006-05-23 07:19:01 +00:00
Brion Vibber
1d281db39f * (bug 5523) $wgNoFollowNsExceptions to allow disabling rel="nofollow" in specially-selected namespaces.
Patch by Ilmari Karonen, http://bugzilla.wikimedia.org/attachment.cgi?id=1789&action=view
2006-05-22 21:17:38 +00:00
Rob Church
e7f5589bfe (bug 839) Add URLENCODE magic word 2006-05-17 15:36:05 +00:00
Rob Church
9dc2e7f683 (bug 6001) PAGENAMEE and FULLPAGENAMEE don't work in FULLURL and LOCALURL magic words 2006-05-17 14:41:51 +00:00
Rob Church
b01da48ba2 Suppress images in galleries which appear on the bad image list (when rendering for a wiki page; galleries in special pages and categories are unaffected) 2006-05-16 19:15:58 +00:00
Rob Church
03fb770cfb Revert; not cache-safe 2006-05-14 21:52:28 +00:00
Rob Church
21c0d76164 (bug 5651) Disable section editing links for users who can't edit 2006-05-14 16:41:49 +00:00
Rob Church
310e59e559 (bug 5845) Introduce BASEPAGENAME and BASEPAGENAMEE magic words 2006-05-14 03:51:36 +00:00
Rob Church
dc701270a6 (bug 5937) Register links from gallery captions with the parent parser output object so that link tables receive those updates too 2006-05-14 03:13:17 +00:00
Antoine Musso
fe70dfffc5 Fix #5918: links autonumbering now work for all defined protocols. 2006-05-13 19:29:24 +00:00
Rob Church
93f968cef8 (bug 5683) Respect parser output marked as uncacheable when saving 2006-05-13 17:40:59 +00:00