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
= 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
Rob Church
1cea04c788
* Introduce NUMBEROFPAGES magic word
...
* (bug 5833) Introduce CURRENTVERSION magic word
2006-05-13 17:30:42 +00:00
Antoine Musso
7ebdb6de89
Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad)
2006-05-11 22:40:38 +00:00
Antoine Musso
c3c2084ee2
Some more PHP5 stuff
2006-05-11 20:24:28 +00:00
Antoine Musso
acb150a105
a round of static statements
2006-05-11 19:39:50 +00:00
Antoine Musso
bc14eb8045
Replacing var keyword with private / public as we now require PHP5.
2006-05-11 19:10:41 +00:00
Antoine Musso
10eea3768d
Fix #5586 : <gallery> treats text as links
2006-05-09 18:01:15 +00:00
Rob Church
0363cc1b5e
* Remove some dud code
...
* Disallow substituting Special pages when included into a page (was puking up a UNIQ_XXXXXXXXX type string)
2006-05-04 22:04:17 +00:00
Rob Church
cc001cf787
(bug 4876) Add __NEWSECTIONLINK__ magic word to force the "new section" link/tab to show up on specific pages on demand
2006-05-01 20:35:08 +00:00
Antoine Musso
01b0ebc2a0
Fix #361 : URL in URL. Final fix !
2006-05-01 20:22:44 +00:00
Rob Church
a584743b2a
Fix Parser::cleanSig() to use Parser::startExternalParse() and choose an appropriate output format given the scope of the clean
2006-04-30 20:09:44 +00:00
Rob Church
35670dacb9
Add "raw suffix" magic word for some magic words, e.g. {{NUMBEROFUSERS|R}} will produce a count minus formatting
2006-04-30 18:02:03 +00:00
Brion Vibber
0bcbd5c171
Remove big loud PHP warning if allow_call_time_pass_reference is off.
...
Please test all code with allow_call_time_pass_reference *off*. Thanks.
2006-04-30 03:46:39 +00:00
Niklas Laxström
e30e9bdd12
* Parser can now know that it is parsing an interface message
...
* (bug 4737) MediaWiki:Viewcount supports {{PLURAL}} now
2006-04-29 13:15:19 +00:00
Rob Church
25653183b8
(bug 93) <nowiki> tags and tildes in templates
2006-04-29 02:20:30 +00:00
Rob Church
b99de7897e
(bug 5741) Introduce {{NUMBEROFUSERS}} magic word
2006-04-29 01:58:39 +00:00
Antoine Musso
53e403a766
2006-04-28 18:56:37 +00:00
Tim Starling
45197b712c
Revert, breaks some unknown aspect of template-table interaction
2006-04-27 15:46:33 +00:00
Tim Starling
36521ce33c
Don't parse the return value of a function-style extension by default.
2006-04-27 08:21:42 +00:00
Antoine Musso
02732ee453
Fix #4834 : correct XHTML output when using $wgMaxTocLevel
2006-04-25 19:43:46 +00:00
Antoine Musso
69689725c1
Switching from phpdoc to doxygen (use less than 32MB of memory).
...
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00