Brion Vibber
d390ac8b92
* (bug 2567) Fix HTML escaping on category titles in list
2005-06-28 19:56:17 +00:00
Ævar Arnfjörð Bjarmason
e34aa50e13
* Removed a comment, "FIXME require in a foreach", require_once() will be
...
evaluated exactly once during execution (it has an effect similar to the
static keyword), do demonstrate this behaviour run the code
for ($i = 0; $i < 10; ++$i) require("file.txt");
in a directory that has a file called 'file.txt' and then change require()
to require_once();
2005-06-27 08:23:22 +00:00
Antoine Musso
6c52e611b7
quotes. Nice "require" in a foreach() need a fix ;)
2005-06-27 01:35:22 +00:00
Tim Starling
9acfb88be7
More interwiki mucking around -- isLocal() is not the opposite of isExternal()\!
2005-06-26 13:38:43 +00:00
Ævar Arnfjörð Bjarmason
76d3a0b5f3
* A new magic word, {{NUMBEROFFILES}}, returns the number of rows in the
...
image table
2005-06-26 03:23:24 +00:00
Brion Vibber
a2a28a34c1
* (bug 996) Replace $wgWhitelistEdit with 'edit' permission; fixup UPGRADE documentation about edit and read whitelists.
...
Patch by robla: http://bugzilla.wikimedia.org/attachment.cgi?id=645&action=view
plus doc fixes
2005-06-25 06:24:46 +00:00
Ævar Arnfjörð Bjarmason
9048d60b57
* Added a new magic word, {{SERVERNAME}}, that returns $wgServerName, useful
...
for things like bug 1825
2005-06-24 02:54:52 +00:00
Ævar Arnfjörð Bjarmason
0ecd7aa835
* MAG_PATH renamed to MAG_SCRIPTPATH
2005-06-20 11:06:33 +00:00
Brion Vibber
b115dd7442
* (bug 2462 etc) Taking out the experimental dash conversion; it broke too
...
many things for the current parser to handle cleanly
2005-06-20 04:56:59 +00:00
Ævar Arnfjörð Bjarmason
97cf74d1c9
* A new magic word, {{PATH}}, returns $wgScriptPath
2005-06-19 16:09:00 +00:00
Ævar Arnfjörð Bjarmason
6ab543b32d
* Bah, this extracttags hack sucked
2005-06-18 01:23:20 +00:00
Ævar Arnfjörð Bjarmason
52c18763b9
* Moved $text alteration statement, should only be used when we're not
...
stripping comments.
2005-06-18 01:13:46 +00:00
Ævar Arnfjörð Bjarmason
798df26f95
* (bug 2374) Allow extension tags to be terminated empty elements
...
i.e. <extension/> instead of <extension></extension>, works for
<extension foo=bar.../> too
2005-06-18 01:07:42 +00:00
Anders Wegge Jakobsen
a178720a2c
(bug 2171) The parser is not totally reentrant
2005-06-14 16:04:00 +00:00
Brion Vibber
fafdfd30ed
* (bug 2394) Undo incompatible breakage to {{msg:}} compatiblity includes
2005-06-12 13:39:28 +00:00
Brion Vibber
17d54cfb4b
* (bug 2372) Fix rendering of empty-title inline interwiki links
2005-06-11 01:54:03 +00:00
Brion Vibber
36c79652ca
Fix for bug 2319, accidentally reverted in last checkin
2005-06-06 03:06:53 +00:00
Brion Vibber
ebefdf49d0
* Disallow close tags and enforce empty tags for <hr> and <br>
2005-06-06 03:04:12 +00:00
Brion Vibber
b42e337463
* (bug 2309) Allow templates and template parameters in HTML attribute zone,
...
with proper validation checks. (regression from fix for 2304)
2005-06-06 01:46:03 +00:00
Brion Vibber
2097b8a72f
* (bug 2319) Fix parse hook tag matching
2005-06-04 22:49:08 +00:00
Brion Vibber
13eb618dd9
* (bug 684) Accept an attribute parameter array on parser hook tags
...
Some parts of http://bugzilla.wikimedia.org/attachment.cgi?id=96&action=view
with heavy modification; using tag matching in the style we accept regular
HTML elements, and decode attribute values to proper strings.
2005-06-03 08:12:48 +00:00
Brion Vibber
84e2e2ff13
* (bug 2130) Fixed interwiki links with fragments
2005-06-03 05:46:24 +00:00
Brion Vibber
fe40fe9da8
* Replace wfMungeToUtf8 and do_html_entity_decode with a single function
...
that does both numeric and named chars: Sanitizer::decodeCharReferences
* Removed some obsolete UTF-8 converter functions
2005-05-31 11:54:36 +00:00
Brion Vibber
1c53790966
* (bug 2271) Use faster text-only link replacement in image alt text
...
instead of rerunning expensive link lookup and HTML generation.
2005-05-31 08:49:03 +00:00
Brion Vibber
ee1f2b3c31
fix syntax error introduced in last commit
2005-05-29 10:45:37 +00:00
Anders Wegge Jakobsen
281803dd1f
* (bug 2094) Multiple use of a template produced wrong results in some cases
2005-05-29 10:28:39 +00:00
Tim Starling
842fef7c4d
basic support for special page inclusions
2005-05-28 11:09:22 +00:00
Tim Starling
d22bea9ab7
convenient ParserOptions constructor
2005-05-28 06:59:49 +00:00
Brion Vibber
e0ce5a322e
* links and brokenlinks tables merged to pagelinks; this will reduce pain
...
dealing with moves and deletes of widely-linked pages.
The updaters should be fixed up to understand future versions without the
tables there without breaking upgrades.
2005-05-26 10:23:36 +00:00
Ævar Arnfjörð Bjarmason
fe8625db80
* Restored the {{msg:}} magic word, except now it's the wikisyntax
...
representation of wfMsgForContent() rather than a shorthand for {{Template:}}
2005-05-23 23:24:00 +00:00
Brion Vibber
43fe2dcbe2
Fix for the main (no pipe) case of bug 2095, triple closing backets on link
...
was putting the extra bracket as the link text instead of the trail.
This was due to a broken workaround for links in image captions.
For now it will still move the bracket inside the link text for piped links,
which is wrong and ought to be fixed.
2005-05-18 09:21:47 +00:00
Brion Vibber
fe2ac1409b
Revert __LCFIRST__ patch. Title objects should be treated as value objects;
...
any Title object for a given title should always act the same. Poking around
with the guts of one to change some of its return values is not a good idea.
2005-05-15 20:42:11 +00:00
Ævar Arnfjörð Bjarmason
71f1c34ce4
* (bug 2118) Added a __LCFIRST__ magic word for forcing the first character of
...
a pages heading to render in its lower case form on output, however the page
is still saved under its upper case name in the database so this is purely an
aesthetic change (unlike setting $wgCapitalLinks to false).
2005-05-15 17:21:58 +00:00
Ævar Arnfjörð Bjarmason
a7054a9cd8
* Deprecated the {{msg:}} syntax for inclusion from the Template namespace.
2005-05-13 11:11:30 +00:00
Brion Vibber
094b5bd481
* Add $wgLegacySchemaConversion update-time option to reduce amount of
...
copying during the schema upgrade: creates HistoryBlobCurStub reference
records in text instead of copying all the cur_text fields. Requires
that the cur table be left in place until/unless such fields are migrated
into the main text store.
In my test with a nl.wikipedia.org dump, this sped up the cur-to-old copy
operation from a few hours to a few minutes. Also added some hacky timer
echos in the updater for debug purposes. They should be prettied up but
probably kept.
2005-05-06 11:31:18 +00:00
Ævar Arnfjörð Bjarmason
832312ed1f
* Changed [0-9] to \d in the ndash converter.
2005-05-04 01:53:04 +00:00
Jens Frank
0d56da62d3
(bug 2021)(bug 1937) Move dash replacement to a later stage, so that all links are already stripped
2005-05-03 04:49:58 +00:00
Zheng Zhu
eeb2e4c04b
convert link text for category link
2005-05-01 01:11:15 +00:00
Zheng Zhu
ff1e0c0581
Full conversion support for category pages
2005-04-28 03:33:54 +00:00
Brion Vibber
0ee9a04366
Missing global declaration.
...
[27-Apr-2005 13:16:58] PHP Notice: Undefined variable: wgContLang in /var/www/testwiki/includes/Parser.php on line 1027
[27-Apr-2005 13:16:58] PHP Fatal error: Call to a member function markNoConversion() on a non-object in /var/www/testwiki/includes/Parser.php on line 1027
2005-04-27 20:19:35 +00:00
Tim Starling
a8825b9e3e
* Deglobalised link placeholder handling by moving the relevant functionality from Linker::makeLinkObj() to Parser::makeLinkHolder()
...
* Did a similar trick for the handling of image options, in order to fix a bug reported by the parser unit test.
* Updated parser tests to match current output where appropriate.
2005-04-27 07:48:14 +00:00
Zheng Zhu
539ad2c8e0
Comments about the position of the convert() call;
...
Avoiding converting external links if latin alphabet is involved in the conversion system.
2005-04-26 20:50:16 +00:00
Tim Starling
8172957670
Cleared $wgLinkHolders after they are used. This fixes bug 1770 and probably improves performance too.
2005-04-25 13:43:11 +00:00
Brion Vibber
85e6160dfd
* (bug 1938) Fix normalization of character references in link text and
...
other replaced portions; run after link replacement but before tidy.
(Tidy will do some odd things if used, with breakage resulting from corner
cases.)
2005-04-21 11:40:58 +00:00
Ævar Arnfjörð Bjarmason
01a79571c8
* (bug 1931) cleanup, removing unused code and variables.
2005-04-21 06:30:48 +00:00
Brion Vibber
0527e119b3
Tidy's & normalization is kind of weird and doesn't always act the way we
...
want. Run the same amp cleanup whether we're using tidy or not.
2005-04-21 01:33:32 +00:00
Brion Vibber
8ac68932c7
* (bug 1188, bug 1936) Only run strip and sanitize on templates for
...
final output, not on save-time subst: transformations.
Fixes tests:
Running test pre-save transform: nowiki in subst (bug 1188)... PASSED
Running test pre-save transform: comment in subst (bug 1936)... PASSED
2005-04-20 22:55:49 +00:00
Brion Vibber
8ce19a6276
* Use in-process Tidy extension if available when $wgUseTidy is on
...
It seems I forgot to commit this last night. Whoops!
2005-04-20 21:58:57 +00:00
Tim Starling
66507cbde3
Setup.php-DateFormatter was using a lot of CPU time on the live site. Moved it to on-demand initialisation, with memcached assistance.
2005-04-20 15:42:08 +00:00
Ævar Arnfjörð Bjarmason
28b4179a36
* (bug 1300) patch from Michael Keppler to make the regexp eat across newlines.
2005-04-19 17:19:52 +00:00