Wil Mahan [Thu, 23 Sep 2004 06:43:43 +0000 (06:43 +0000)]
add $wgSitename global for testing magic variables
Wil Mahan [Thu, 23 Sep 2004 06:41:46 +0000 (06:41 +0000)]
Add tests for magic variables (using $wgSitename) and nonexistant templates.
Tests for existing templates will be a bit more difficult. ;)
Wil Mahan [Thu, 23 Sep 2004 06:29:46 +0000 (06:29 +0000)]
Remove a space for parser checker consistency
Wil Mahan [Thu, 23 Sep 2004 06:13:16 +0000 (06:13 +0000)]
add two more block-level tests
Wil Mahan [Thu, 23 Sep 2004 05:59:27 +0000 (05:59 +0000)]
Split up internal links test cases, add a couple more
Brion Vibber [Thu, 23 Sep 2004 05:45:17 +0000 (05:45 +0000)]
Add --quick option to suppress display of diffs.
Brion Vibber [Thu, 23 Sep 2004 05:40:10 +0000 (05:40 +0000)]
Add color to the output; assumes a more or less ANSI-flavored terminal.
Won't display color on Windows by default; use --color or --color=no to override.
Wil Mahan [Thu, 23 Sep 2004 05:12:47 +0000 (05:12 +0000)]
Fix and enable all internal links test cases, including two bugs
Brion Vibber [Thu, 23 Sep 2004 05:08:20 +0000 (05:08 +0000)]
Add regression test case for bug 554
Brion Vibber [Thu, 23 Sep 2004 02:31:18 +0000 (02:31 +0000)]
Separate out the external links tests
Brion Vibber [Thu, 23 Sep 2004 02:30:56 +0000 (02:30 +0000)]
Add a newline to the diff temp files to remove the annoying message about it
Brion Vibber [Thu, 23 Sep 2004 02:25:41 +0000 (02:25 +0000)]
Don't produce a title attribute for external links when the link text is
the same as the URL. (We already don't produce a print expansion for these.)
Brion Vibber [Thu, 23 Sep 2004 00:45:49 +0000 (00:45 +0000)]
Cleaning up checkin conflict: remove Wil's parserTransform() function as
this is superceded by setting the globals to a known initial state.
Brion Vibber [Thu, 23 Sep 2004 00:39:30 +0000 (00:39 +0000)]
Fix test to match change to Skin.php
Brion Vibber [Thu, 23 Sep 2004 00:38:18 +0000 (00:38 +0000)]
Tweak tests back into shape
Wil Mahan [Thu, 23 Sep 2004 00:37:10 +0000 (00:37 +0000)]
Remove a single space that breaks a parser test
Brion Vibber [Thu, 23 Sep 2004 00:33:07 +0000 (00:33 +0000)]
Parser test improvements:
* Show a diff of the expected and actual output rather than dumping large swaths of HTML
* Set exit code depending on success
* Standardize some global settings such as the URL paths which affect output
* Added copyright/GPL notice to test script code
Wil Mahan [Thu, 23 Sep 2004 00:31:22 +0000 (00:31 +0000)]
make some more tests work
Wil Mahan [Thu, 23 Sep 2004 00:30:28 +0000 (00:30 +0000)]
allow simple variables in expected test results; use tidy on expected result when
$wgUseTidy is enabled, which makes it possible to disregard cosmetic formatting
discrepancies
Antoine Musso [Wed, 22 Sep 2004 22:03:24 +0000 (22:03 +0000)]
fix php notices about call-time by reference
Wil Mahan [Wed, 22 Sep 2004 21:54:19 +0000 (21:54 +0000)]
Use OutputPage to replace link placeholders; add links, quotes tests
(not working at the moment)
Wil Mahan [Wed, 22 Sep 2004 21:22:51 +0000 (21:22 +0000)]
Remove the comment check I added (wasn't necessary); add a way do disable tests.
Add nowiki, comment, and external links tests (some disabled at the moment).
Wil Mahan [Wed, 22 Sep 2004 20:04:11 +0000 (20:04 +0000)]
Don't unstrip() in internalParse(), because it's already done in parse().
This fixes <nowiki>*list item</nowiki>, which was caught thanks to the
parser tester. :)
Wil Mahan [Wed, 22 Sep 2004 19:46:51 +0000 (19:46 +0000)]
Allow comments beginning with '#' between sections, for more detailed
descriptions of the tests.
Jens Frank [Wed, 22 Sep 2004 17:46:13 +0000 (17:46 +0000)]
Fixed some typos
Wil Mahan [Wed, 22 Sep 2004 16:20:34 +0000 (16:20 +0000)]
Set $fname to prevent warning in edit conflicts
Zheng Zhu [Wed, 22 Sep 2004 13:04:06 +0000 (13:04 +0000)]
fixed missing </select>
Brion Vibber [Wed, 22 Sep 2004 12:25:40 +0000 (12:25 +0000)]
Quick start on a mindlessly simply parser test suite.
Works on a standalone parser object, not through the globals or the web interface, which is created anew for each test. Pretty primitive so far, but this at least allows accumulation of tests for now.
Brion Vibber [Wed, 22 Sep 2004 11:39:30 +0000 (11:39 +0000)]
If $_SERVER['REMOTE_ADDR'] is not set, use 127.0.0.1 for $wgIP.
This avoids an E_NOTIFY-level warning and avoids having the empty
string set for the IP when running from CLI.
Brion Vibber [Wed, 22 Sep 2004 11:37:16 +0000 (11:37 +0000)]
One more time... :P shouldn't commit this late at night.
Brion Vibber [Wed, 22 Sep 2004 11:33:56 +0000 (11:33 +0000)]
Whoops, typo in making variable name legible. ;)
But at least it *ran*. ;)
Brion Vibber [Wed, 22 Sep 2004 11:30:43 +0000 (11:30 +0000)]
Undo fatal mistake added in revision 1.82.
DO NOT die if the skin class isn't found! This breaks maintenance
scripts and can cause a user account to be unrecoverable
except by SQL manipulation if a previously valid skin name
is no longer valid.
Zheng Zhu [Wed, 22 Sep 2004 06:30:16 +0000 (06:30 +0000)]
only list languages with corresponding language files in the UI selection part
Zheng Zhu [Wed, 22 Sep 2004 05:20:51 +0000 (05:20 +0000)]
replacing wgLang with wgContLang
Jens Frank [Wed, 22 Sep 2004 05:11:56 +0000 (05:11 +0000)]
Add missing functions for language variants
Zheng Zhu [Wed, 22 Sep 2004 04:24:50 +0000 (04:24 +0000)]
sending the content language code as Content-language
Zheng Zhu [Wed, 22 Sep 2004 04:09:31 +0000 (04:09 +0000)]
made some more wfMsg() to wfMsgForContent changes
Zheng Zhu [Wed, 22 Sep 2004 03:56:27 +0000 (03:56 +0000)]
get variants from the content language object
Zheng Zhu [Wed, 22 Sep 2004 03:55:08 +0000 (03:55 +0000)]
use wfMsgForContent() when creating new titles from text
Zheng Zhu [Wed, 22 Sep 2004 03:53:13 +0000 (03:53 +0000)]
switch to wfMsgForContent()
Zheng Zhu [Wed, 22 Sep 2004 03:51:32 +0000 (03:51 +0000)]
use wgContLang to convert among different language variants
Zheng Zhu [Wed, 22 Sep 2004 03:49:23 +0000 (03:49 +0000)]
new wfMsg* functions to use the wgContLang object for translating content related messages
Zheng Zhu [Wed, 22 Sep 2004 03:32:56 +0000 (03:32 +0000)]
Adding a wgContLang object to handle message translation for the content of the site; wgLang should be used exclusively for UI messages.
Antoine Musso [Wed, 22 Sep 2004 01:48:04 +0000 (01:48 +0000)]
single quotes !!1!
Antoine Musso [Wed, 22 Sep 2004 01:41:53 +0000 (01:41 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=459 Sorting tabindex.
Antoine Musso [Wed, 22 Sep 2004 01:36:01 +0000 (01:36 +0000)]
Patch from bugzilla.wikipedia.org/show_bug.cgi?id=465 by ��var Arnfj��r�� Bjarmason <avarab@gmail.com>
Antoine Musso [Wed, 22 Sep 2004 00:58:41 +0000 (00:58 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=490 Implement a header in Special:Category
Antoine Musso [Wed, 22 Sep 2004 00:42:09 +0000 (00:42 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser" message ("nosuchusershort") when an admin tries to block a non existent user.
Wil Mahan [Wed, 22 Sep 2004 00:15:54 +0000 (00:15 +0000)]
Now it is straightforward to fix bug 89, subst: template parameters.
Initial patch thanks to alanyst@gmail.com.
Wil Mahan [Tue, 21 Sep 2004 23:56:25 +0000 (23:56 +0000)]
Two somewhat experimental changes before I fix bug 89:
1) Don't suspend the LinkCache when including templates;
because we don't call replaceInternalLinks() anymore,
it doesn't do anything.
2) Don't call strip(), removeHTMLcomments(), or replaceVariables()
on template parameters in argSubstitution(). The first two
should already be done on the article including the template,
and the third is unnecessary because it isn't possible to
pass templates as parameters to templates.
These seem to work, but if anybody notices any problems,
please let me know.
Wil Mahan [Tue, 21 Sep 2004 23:30:46 +0000 (23:30 +0000)]
Removing variableSubstitution broke passing magic variables as template
parameters, so restore it. Instead, remove magic variable substitution
from braceSubstitution(), and modify variableSubstitution to handle magic
variables prefixed by SUBST in the pre-save transform.
Antoine Musso [Tue, 21 Sep 2004 19:47:31 +0000 (19:47 +0000)]
fix tab
River Tarnell [Tue, 21 Sep 2004 19:05:46 +0000 (19:05 +0000)]
remove extraneous wfDebug
River Tarnell [Tue, 21 Sep 2004 19:03:39 +0000 (19:03 +0000)]
don't error on certain inputs if $matches[] doesn't have a last element
River Tarnell [Tue, 21 Sep 2004 18:20:56 +0000 (18:20 +0000)]
use comments instead of __ so we don't scare the users if erroneous ones creep in
River Tarnell [Tue, 21 Sep 2004 18:15:37 +0000 (18:15 +0000)]
fix a problem by not inserting __MWTEMPLATESECTION for section titles that don't exist
Jens Frank [Tue, 21 Sep 2004 17:57:33 +0000 (17:57 +0000)]
Instead of storing entire link attributes in wikitext for
deleayed link colouring, store pointer to an entry in array wgLinkHolders. Fixes BUG#493 and should
be faster.
Forgot to submit this this morning. Sorry!!
Antoine Musso [Tue, 21 Sep 2004 17:51:19 +0000 (17:51 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=538.
Reuploading image should work now.
River Tarnell [Tue, 21 Sep 2004 16:56:48 +0000 (16:56 +0000)]
forwardport fixes for template section edit links from rel1_3
Antoine Musso [Tue, 21 Sep 2004 16:13:02 +0000 (16:13 +0000)]
* flips p-nav and p-personal
* no bullets for menu list items
River Tarnell [Tue, 21 Sep 2004 12:11:17 +0000 (12:11 +0000)]
fix: inclusion of non-existent template is broken.
this still appears to be broken, but I think it was broken before this code existed as well.
River Tarnell [Tue, 21 Sep 2004 11:54:45 +0000 (11:54 +0000)]
fix for several problems found by Eloquence:
section edit links in nested templates didn't work;
edit links for subsections in templates didn't work.
pending: links for non-existent templates are broken.
River Tarnell [Tue, 21 Sep 2004 09:47:42 +0000 (09:47 +0000)]
implement editSectionLinkForOther (required for latest parser changed)
River Tarnell [Tue, 21 Sep 2004 08:31:25 +0000 (08:31 +0000)]
make section headers in templates have edit links that point to the template.
River Tarnell [Tue, 21 Sep 2004 06:54:18 +0000 (06:54 +0000)]
fix bug where __MWTEMPLATESECTION__ was being used with subst:
Jens Frank [Tue, 21 Sep 2004 06:07:55 +0000 (06:07 +0000)]
unneeded "" around single variable removed
Wil Mahan [Tue, 21 Sep 2004 05:49:12 +0000 (05:49 +0000)]
Convert many comments to phpdoc style, and document some more functions
Wil Mahan [Tue, 21 Sep 2004 05:12:44 +0000 (05:12 +0000)]
Completely remove variableSubstitution(), because magic variable
replacement is redundantly done in braceSubstitution(). Aside
from removing unnecessary code, this will make it easier to fix
bug 89, parameters to {{subst:}} templates
River Tarnell [Tue, 21 Sep 2004 04:33:51 +0000 (04:33 +0000)]
don't put edit links on sections from included templates.
template section headings have __MWTEMPLATESECTION__ added to them;
formatHeadings removes this and doesn't add the edit link for
such sections. this is a rather hackish fix, but is probably
the best we can do with the current parser setup.
it would be nice (but not important) if this could be extended to
let users prevent edit links for certain sections.
fixes bug #266
Zheng Zhu [Tue, 21 Sep 2004 00:48:45 +0000 (00:48 +0000)]
corrected testing the existence of an object
Arne Heizmann [Tue, 21 Sep 2004 00:17:12 +0000 (00:17 +0000)]
bugfix: Special:Allpages "next" link should include &namespace= parameter
Jens Frank [Mon, 20 Sep 2004 23:02:08 +0000 (23:02 +0000)]
Instead of storing entire link attributes in wikitext for
deleayed link colouring, store pointer to an entry in array wgLinkHolders. Fixes BUG#493 and should
be faster.
Wil Mahan [Mon, 20 Sep 2004 21:53:21 +0000 (21:53 +0000)]
Bug 506: use $_SERVER[] instead of getenv() because the latter doesn't work
on IIS in ISAPI mode.
Antoine Musso [Mon, 20 Sep 2004 21:41:26 +0000 (21:41 +0000)]
Fix bug 479 : parsing [[RFC 1234]] as internal link
I forgot to commit it :(
Antoine Musso [Mon, 20 Sep 2004 18:29:34 +0000 (18:29 +0000)]
bug 511
Antoine Musso [Mon, 20 Sep 2004 18:26:51 +0000 (18:26 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere and relatedchanges links for special pages.
Antoine Musso [Mon, 20 Sep 2004 17:42:12 +0000 (17:42 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere and relatedchanges links for special pages.
Antoine Musso [Mon, 20 Sep 2004 16:23:10 +0000 (16:23 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=538
Return an 'emptyfile' error page if filename is empty.
Antoine Musso [Mon, 20 Sep 2004 16:10:48 +0000 (16:10 +0000)]
comments / single quotes.
Wil Mahan [Mon, 20 Sep 2004 16:05:37 +0000 (16:05 +0000)]
Fix small corner case in HTML comment removal
Antoine Musso [Mon, 20 Sep 2004 15:54:10 +0000 (15:54 +0000)]
bug 479 : parsing [[RFC 1234]] as internal link
Arne Heizmann [Mon, 20 Sep 2004 14:55:25 +0000 (14:55 +0000)]
no real change. (rm trailing whitespace, convert leading spaces to tabs)
Tim Starling [Mon, 20 Sep 2004 11:16:56 +0000 (11:16 +0000)]
cleaned up
Tim Starling [Mon, 20 Sep 2004 10:34:07 +0000 (10:34 +0000)]
new non-stub Indonesian language file
Tim Starling [Mon, 20 Sep 2004 10:30:18 +0000 (10:30 +0000)]
suppress warnings before calling $wgLang->getMessage(), because many language files generate notices
Jens Frank [Mon, 20 Sep 2004 06:17:04 +0000 (06:17 +0000)]
BUG#487 Use Wil's custom function to replace HTML comments instead of
a regular expression. It is much more robust for different test cases, e.g.
*abc
<!-- comment -->def
Jens Frank [Mon, 20 Sep 2004 05:27:16 +0000 (05:27 +0000)]
Fixed broken code.
> PLEASE TEST YOUR PATCHES BEFORE COMMITTING THEM
Zheng Zhu [Mon, 20 Sep 2004 05:22:45 +0000 (05:22 +0000)]
added a language variant field to the page rendering hash, but only for languages that support multiple variants.
Antoine Musso [Mon, 20 Sep 2004 02:45:19 +0000 (02:45 +0000)]
a bit better toc
Antoine Musso [Mon, 20 Sep 2004 02:36:29 +0000 (02:36 +0000)]
diff and history color fixes
Antoine Musso [Mon, 20 Sep 2004 01:56:15 +0000 (01:56 +0000)]
fix colors when using thumbnails
Zheng Zhu [Mon, 20 Sep 2004 01:47:10 +0000 (01:47 +0000)]
* Updated the message for 'yourvariant' to reflect that it is meant for the language variant of the content
* Updated getPreferredVariant() to return some meaningful default values
Antoine Musso [Mon, 20 Sep 2004 01:33:39 +0000 (01:33 +0000)]
new skin using a dark background. Originaly made by Sorwena and Sorkhiri for the Amethyst guild
Zheng Zhu [Mon, 20 Sep 2004 00:32:19 +0000 (00:32 +0000)]
removed getMonth*() and getWeekdayname() since these are now handled through wfMsg()
Arne Heizmann [Mon, 20 Sep 2004 00:22:43 +0000 (00:22 +0000)]
Tatar week days and months
Antoine Musso [Sun, 19 Sep 2004 22:59:23 +0000 (22:59 +0000)]
Die horribly if a skin class doesn't exist. Will help skins builders.
Antoine Musso [Sun, 19 Sep 2004 21:36:55 +0000 (21:36 +0000)]
Migrate to a QueryPage class
Wil Mahan [Sun, 19 Sep 2004 20:58:10 +0000 (20:58 +0000)]
Fix bug 56, which causes sections to be dropped or duplicated
in edit conflicts during section editing.
Wil Mahan [Sun, 19 Sep 2004 20:47:18 +0000 (20:47 +0000)]
Fix literal \n in 'editingold' message
Antoine Musso [Sun, 19 Sep 2004 19:37:26 +0000 (19:37 +0000)]
comments