Zheng Zhu [Fri, 24 Sep 2004 19:02:39 +0000 (19:02 +0000)]
Added a simple syntax check in the conversion code
Zheng Zhu [Fri, 24 Sep 2004 18:37:33 +0000 (18:37 +0000)]
fixed formating (tab instead of space)
Wil Mahan [Fri, 24 Sep 2004 18:36:17 +0000 (18:36 +0000)]
Change example noted by Brion--I think the current output is
arguably correct, albeit not very useful. At the moment 71 of 71
tests pass!
Zheng Zhu [Fri, 24 Sep 2004 18:31:16 +0000 (18:31 +0000)]
Replaced call to deprecated Namespace::getSpecial(); update comment on autoConvert()
Wil Mahan [Fri, 24 Sep 2004 18:29:01 +0000 (18:29 +0000)]
Another attempt at fixing bug 2. Call replaceInternalLinks() before
replaceExternalLinks(). Use placeholders for interwiki links, as with
other internal links, to avoid parsing them as external. Disallow
links to pages containing a URL protocol followed by a colon.
Unrelated: output a warning comment when a template loop is detected.
Zheng Zhu [Fri, 24 Sep 2004 18:24:01 +0000 (18:24 +0000)]
Attempt to fix links not fixed in the wgLang->wgContLang transition
Erik Moeller [Fri, 24 Sep 2004 17:31:02 +0000 (17:31 +0000)]
removing Windows line endings
fixing MySQL code so it works under 4.0/Linux
Zheng Zhu [Fri, 24 Sep 2004 16:45:31 +0000 (16:45 +0000)]
Third batch of files modified to replace selected wgLang with wgContLang
Zheng Zhu [Fri, 24 Sep 2004 16:24:43 +0000 (16:24 +0000)]
Second batch of files modified to replace selected wgLang with wgContLang
Zheng Zhu [Fri, 24 Sep 2004 14:59:44 +0000 (14:59 +0000)]
moved user toggles into wgAllMessages
Magnus Manske [Fri, 24 Sep 2004 14:49:22 +0000 (14:49 +0000)]
Wiki database system
Zheng Zhu [Fri, 24 Sep 2004 13:14:52 +0000 (13:14 +0000)]
First batch of files modified to switch wgLang to wgContLang.
Zheng Zhu [Fri, 24 Sep 2004 13:10:38 +0000 (13:10 +0000)]
Sorry I forgot to commit the fix...
Magnus Manske [Fri, 24 Sep 2004 10:02:48 +0000 (10:02 +0000)]
hotfix for undefined variable
Brion Vibber [Fri, 24 Sep 2004 05:05:53 +0000 (05:05 +0000)]
Add a pretty PASSED! or FAILED! to the final summary line.
Wil Mahan [Fri, 24 Sep 2004 04:24:01 +0000 (04:24 +0000)]
Add blurb at top; enable template as link source test now that it
works; be more careful with some trailing newlines; add four table
tests, a template infinite loop test, etc.
Wil Mahan [Fri, 24 Sep 2004 04:19:57 +0000 (04:19 +0000)]
Be a bit more careful about trailing spaces; don't colorize output
when stdout is not at terminal; add a reminder to check for
duplicate/invalid test articles.
Zheng Zhu [Fri, 24 Sep 2004 03:19:04 +0000 (03:19 +0000)]
Set default value for instead of
Wil Mahan [Fri, 24 Sep 2004 02:38:20 +0000 (02:38 +0000)]
Fix bug in pre-save transform caught by tester
Zheng Zhu [Fri, 24 Sep 2004 00:49:00 +0000 (00:49 +0000)]
updated warning about the UI switching code.
Zheng Zhu [Fri, 24 Sep 2004 00:34:13 +0000 (00:34 +0000)]
Changed installation code so that wgContLanguageCode is set, replacing wgLanguageCode.
Zheng Zhu [Fri, 24 Sep 2004 00:10:34 +0000 (00:10 +0000)]
Setting default user option using the content language rather than the UI language
Zheng Zhu [Fri, 24 Sep 2004 00:09:42 +0000 (00:09 +0000)]
passing the language object in as parameter when initializing the message cache
Brion Vibber [Thu, 23 Sep 2004 22:23:28 +0000 (22:23 +0000)]
Break temporary table creation out to setupDatabase() function.
Tweak so that the temporary prefix will actually be used.
Wil Mahan [Thu, 23 Sep 2004 21:57:58 +0000 (21:57 +0000)]
Tests for templates, pre-save transform, message transform.
Wil Mahan [Thu, 23 Sep 2004 21:52:09 +0000 (21:52 +0000)]
Two changes to parserTest:
1) Use 'parsertest' database prefix and temporary tables to allow
creating articles for testing without modifying the normal DB.
Right now this is ugly because the new tables have to be created by
hand.
2) Allow tests to specify articles using !!article ... !!text
... !!endarticle syntax. This is useful for templates, categories,
and I hope more tests.
Brion Vibber [Thu, 23 Sep 2004 20:57:35 +0000 (20:57 +0000)]
Verify known image types on upload.
Tim Starling [Thu, 23 Sep 2004 15:43:25 +0000 (15:43 +0000)]
More consistent method for immediate logout, means that the IP rather than the username is displayed at the top of the logout confirmation page.
Domas Mituzas [Thu, 23 Sep 2004 12:15:42 +0000 (12:15 +0000)]
allow specifying alternative image upload base url (like external servers)
Brion Vibber [Thu, 23 Sep 2004 08:25:30 +0000 (08:25 +0000)]
Add phpdoc comments
Brion Vibber [Thu, 23 Sep 2004 08:23:04 +0000 (08:23 +0000)]
Use '--parseprivate on' option on phpdoc to include the private members/
methods in the docs. They are marked with a distinct icon, but unfortunately
are sorted in among the public items which is not ideal of legible docs.
Brion Vibber [Thu, 23 Sep 2004 07:38:24 +0000 (07:38 +0000)]
Ignore LocalSettings.php,AdminSettings.php
Wil Mahan [Thu, 23 Sep 2004 07:36:00 +0000 (07:36 +0000)]
Magic links, etc.
Brion Vibber [Thu, 23 Sep 2004 07:32:54 +0000 (07:32 +0000)]
Load up LanguageUtf8 and force to utf-8 if config was latin1
Brion Vibber [Thu, 23 Sep 2004 07:29:25 +0000 (07:29 +0000)]
Add remotely fetched files to .cvsignore to reduce screen pollution
Wil Mahan [Thu, 23 Sep 2004 07:25:02 +0000 (07:25 +0000)]
Revert previous change, which broke interwiki links.
Brion Vibber [Thu, 23 Sep 2004 07:22:35 +0000 (07:22 +0000)]
Test inline interwiki link
Wil Mahan [Thu, 23 Sep 2004 07:16:05 +0000 (07:16 +0000)]
Call replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and
a related bug.
Brion Vibber [Thu, 23 Sep 2004 07:14:14 +0000 (07:14 +0000)]
Since 'php parserTests.php' is too long for my lazy fingers, added a Makefile.
'make test' to run the parser tests, 'make doc' to run phpdoc generation.
Brion Vibber [Thu, 23 Sep 2004 07:05:37 +0000 (07:05 +0000)]
Change name of output files to make the diff output a bit clearer
Brion Vibber [Thu, 23 Sep 2004 07:04:06 +0000 (07:04 +0000)]
Set language to en for tests.
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