lhc/web/wiklou.git
19 years agoChange example noted by Brion--I think the current output is
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!

19 years agoReplaced call to deprecated Namespace::getSpecial(); update comment on autoConvert()
Zheng Zhu [Fri, 24 Sep 2004 18:31:16 +0000 (18:31 +0000)]
Replaced call to deprecated  Namespace::getSpecial(); update comment on autoConvert()

19 years agoAnother attempt at fixing bug 2. Call replaceInternalLinks() before
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.

19 years agoAttempt to fix links not fixed in the wgLang->wgContLang transition
Zheng Zhu [Fri, 24 Sep 2004 18:24:01 +0000 (18:24 +0000)]
Attempt to fix links not fixed in the wgLang->wgContLang transition

19 years agoremoving Windows line endings
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

19 years agoThird batch of files modified to replace selected wgLang with wgContLang
Zheng Zhu [Fri, 24 Sep 2004 16:45:31 +0000 (16:45 +0000)]
Third batch of files modified to replace selected wgLang with wgContLang

19 years agoSecond 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

19 years agomoved user toggles into wgAllMessages
Zheng Zhu [Fri, 24 Sep 2004 14:59:44 +0000 (14:59 +0000)]
moved user toggles into wgAllMessages

19 years agoWiki database system
Magnus Manske [Fri, 24 Sep 2004 14:49:22 +0000 (14:49 +0000)]
Wiki database system

19 years agoFirst batch of files modified to switch wgLang to wgContLang.
Zheng Zhu [Fri, 24 Sep 2004 13:14:52 +0000 (13:14 +0000)]
First batch of files modified to switch wgLang to wgContLang.

19 years agoSorry I forgot to commit the fix...
Zheng Zhu [Fri, 24 Sep 2004 13:10:38 +0000 (13:10 +0000)]
Sorry I forgot to commit the fix...

19 years agohotfix for undefined variable
Magnus Manske [Fri, 24 Sep 2004 10:02:48 +0000 (10:02 +0000)]
hotfix for undefined variable

19 years agoAdd a pretty PASSED! or FAILED! to the final summary line.
Brion Vibber [Fri, 24 Sep 2004 05:05:53 +0000 (05:05 +0000)]
Add a pretty PASSED! or FAILED! to the final summary line.

19 years agoAdd blurb at top; enable template as link source test now that it
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.

19 years agoBe a bit more careful about trailing spaces; don't colorize output
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.

19 years agoSet default value for instead of
Zheng Zhu [Fri, 24 Sep 2004 03:19:04 +0000 (03:19 +0000)]
Set default value for  instead of

19 years agoFix bug in pre-save transform caught by tester
Wil Mahan [Fri, 24 Sep 2004 02:38:20 +0000 (02:38 +0000)]
Fix bug in pre-save transform caught by tester

19 years agoupdated warning about the UI switching code.
Zheng Zhu [Fri, 24 Sep 2004 00:49:00 +0000 (00:49 +0000)]
updated warning about the UI switching code.

19 years agoChanged installation code so that wgContLanguageCode is set, replacing wgLanguageCode.
Zheng Zhu [Fri, 24 Sep 2004 00:34:13 +0000 (00:34 +0000)]
Changed installation code so that wgContLanguageCode is set, replacing wgLanguageCode.

19 years agoSetting default user option using the content language rather than the UI language
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

19 years agopassing the language object in as parameter when initializing the message cache
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

19 years agoBreak temporary table creation out to setupDatabase() function.
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.

19 years agoTests for templates, pre-save transform, message transform.
Wil Mahan [Thu, 23 Sep 2004 21:57:58 +0000 (21:57 +0000)]
Tests for templates, pre-save transform, message transform.

19 years agoTwo changes to parserTest:
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.

19 years agoVerify known image types on upload.
Brion Vibber [Thu, 23 Sep 2004 20:57:35 +0000 (20:57 +0000)]
Verify known image types on upload.

19 years agoMore consistent method for immediate logout, means that the IP rather than the userna...
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.

19 years agoallow specifying alternative image upload base url (like external servers)
Domas Mituzas [Thu, 23 Sep 2004 12:15:42 +0000 (12:15 +0000)]
allow specifying alternative image upload base url (like external servers)

19 years agoAdd phpdoc comments
Brion Vibber [Thu, 23 Sep 2004 08:25:30 +0000 (08:25 +0000)]
Add phpdoc comments

19 years agoUse '--parseprivate on' option on phpdoc to include the private members/
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.

19 years agoIgnore LocalSettings.php,AdminSettings.php
Brion Vibber [Thu, 23 Sep 2004 07:38:24 +0000 (07:38 +0000)]
Ignore LocalSettings.php,AdminSettings.php

19 years agoMagic links, etc.
Wil Mahan [Thu, 23 Sep 2004 07:36:00 +0000 (07:36 +0000)]
Magic links, etc.

19 years agoLoad up LanguageUtf8 and force to utf-8 if config was latin1
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

19 years agoAdd remotely fetched files to .cvsignore to reduce screen pollution
Brion Vibber [Thu, 23 Sep 2004 07:29:25 +0000 (07:29 +0000)]
Add remotely fetched files to .cvsignore to reduce screen pollution

19 years agoRevert previous change, which broke interwiki links.
Wil Mahan [Thu, 23 Sep 2004 07:25:02 +0000 (07:25 +0000)]
Revert previous change, which broke interwiki links.

19 years agoTest inline interwiki link
Brion Vibber [Thu, 23 Sep 2004 07:22:35 +0000 (07:22 +0000)]
Test inline interwiki link

19 years agoCall replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and
Wil Mahan [Thu, 23 Sep 2004 07:16:05 +0000 (07:16 +0000)]
Call replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and
a related bug.

19 years agoSince 'php parserTests.php' is too long for my lazy fingers, added a Makefile.
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.

19 years agoChange name of output files to make the diff output a bit clearer
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

19 years agoSet language to en for tests.
Brion Vibber [Thu, 23 Sep 2004 07:04:06 +0000 (07:04 +0000)]
Set language to en for tests.

19 years agoadd $wgSitename global for testing magic variables
Wil Mahan [Thu, 23 Sep 2004 06:43:43 +0000 (06:43 +0000)]
add $wgSitename global for testing magic variables

19 years agoAdd tests for magic variables (using $wgSitename) and nonexistant templates.
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. ;)

19 years agoRemove a space for parser checker consistency
Wil Mahan [Thu, 23 Sep 2004 06:29:46 +0000 (06:29 +0000)]
Remove a space for parser checker consistency

19 years agoadd two more block-level tests
Wil Mahan [Thu, 23 Sep 2004 06:13:16 +0000 (06:13 +0000)]
add two more block-level tests

19 years agoSplit up internal links test cases, add a couple more
Wil Mahan [Thu, 23 Sep 2004 05:59:27 +0000 (05:59 +0000)]
Split up internal links test cases, add a couple more

19 years agoAdd --quick option to suppress display of diffs.
Brion Vibber [Thu, 23 Sep 2004 05:45:17 +0000 (05:45 +0000)]
Add --quick option to suppress display of diffs.

19 years agoAdd color to the output; assumes a more or less ANSI-flavored terminal.
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.

19 years agoFix and enable all internal links test cases, including two bugs
Wil Mahan [Thu, 23 Sep 2004 05:12:47 +0000 (05:12 +0000)]
Fix and enable all internal links test cases, including two bugs

19 years agoAdd regression test case for bug 554
Brion Vibber [Thu, 23 Sep 2004 05:08:20 +0000 (05:08 +0000)]
Add regression test case for bug 554

19 years agoSeparate out the external links tests
Brion Vibber [Thu, 23 Sep 2004 02:31:18 +0000 (02:31 +0000)]
Separate out the external links tests

19 years agoAdd a newline to the diff temp files to remove the annoying message about it
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

19 years agoDon't produce a title attribute for external links when the link text is
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.)

19 years agoCleaning up checkin conflict: remove Wil's parserTransform() function as
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.

19 years agoFix test to match change to Skin.php
Brion Vibber [Thu, 23 Sep 2004 00:39:30 +0000 (00:39 +0000)]
Fix test to match change to Skin.php

19 years agoTweak tests back into shape
Brion Vibber [Thu, 23 Sep 2004 00:38:18 +0000 (00:38 +0000)]
Tweak tests back into shape

19 years agoRemove a single space that breaks a parser test
Wil Mahan [Thu, 23 Sep 2004 00:37:10 +0000 (00:37 +0000)]
Remove a single space that breaks a parser test

19 years agoParser test improvements:
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

19 years agomake some more tests work
Wil Mahan [Thu, 23 Sep 2004 00:31:22 +0000 (00:31 +0000)]
make some more tests work

19 years agoallow simple variables in expected test results; use tidy on expected result when
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

19 years agofix php notices about call-time by reference
Antoine Musso [Wed, 22 Sep 2004 22:03:24 +0000 (22:03 +0000)]
fix php notices about call-time by reference

19 years agoUse OutputPage to replace link placeholders; add links, quotes tests
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)

19 years agoRemove the comment check I added (wasn't necessary); add a way do disable tests.
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).

19 years agoDon't unstrip() in internalParse(), because it's already done in parse().
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. :)

19 years agoAllow comments beginning with '#' between sections, for more detailed
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.

19 years agoFixed some typos
Jens Frank [Wed, 22 Sep 2004 17:46:13 +0000 (17:46 +0000)]
Fixed some typos

19 years agoSet $fname to prevent warning in edit conflicts
Wil Mahan [Wed, 22 Sep 2004 16:20:34 +0000 (16:20 +0000)]
Set $fname to prevent warning in edit conflicts

19 years agofixed missing </select>
Zheng Zhu [Wed, 22 Sep 2004 13:04:06 +0000 (13:04 +0000)]
fixed missing </select>

19 years agoQuick start on a mindlessly simply parser test suite.
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.

19 years agoIf $_SERVER['REMOTE_ADDR'] is not set, use 127.0.0.1 for $wgIP.
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.

19 years agoOne more time... :P shouldn't commit this late at night.
Brion Vibber [Wed, 22 Sep 2004 11:37:16 +0000 (11:37 +0000)]
One more time... :P shouldn't commit this late at night.

19 years agoWhoops, typo in making variable name legible. ;)
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*. ;)

19 years agoUndo fatal mistake added in revision 1.82.
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.

19 years agoonly list languages with corresponding language files in the UI selection part
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

19 years agoreplacing wgLang with wgContLang
Zheng Zhu [Wed, 22 Sep 2004 05:20:51 +0000 (05:20 +0000)]
replacing wgLang with wgContLang

19 years agoAdd missing functions for language variants
Jens Frank [Wed, 22 Sep 2004 05:11:56 +0000 (05:11 +0000)]
Add missing functions for language variants

19 years agosending the content language code as Content-language
Zheng Zhu [Wed, 22 Sep 2004 04:24:50 +0000 (04:24 +0000)]
sending the content language code as Content-language

19 years agomade some more wfMsg() to wfMsgForContent changes
Zheng Zhu [Wed, 22 Sep 2004 04:09:31 +0000 (04:09 +0000)]
made some more wfMsg() to wfMsgForContent changes

19 years agoget variants from the content language object
Zheng Zhu [Wed, 22 Sep 2004 03:56:27 +0000 (03:56 +0000)]
get variants from the content language object

19 years agouse wfMsgForContent() when creating new titles from text
Zheng Zhu [Wed, 22 Sep 2004 03:55:08 +0000 (03:55 +0000)]
use wfMsgForContent() when creating new titles from text

19 years agoswitch to wfMsgForContent()
Zheng Zhu [Wed, 22 Sep 2004 03:53:13 +0000 (03:53 +0000)]
switch to wfMsgForContent()

19 years agouse wgContLang to convert among different language variants
Zheng Zhu [Wed, 22 Sep 2004 03:51:32 +0000 (03:51 +0000)]
use wgContLang to convert among different language variants

19 years agonew wfMsg* functions to use the wgContLang object for translating content related...
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

19 years agoAdding a wgContLang object to handle message translation for the content of the site...
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.

19 years agosingle quotes !!1!
Antoine Musso [Wed, 22 Sep 2004 01:48:04 +0000 (01:48 +0000)]
single quotes !!1!

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=459 Sorting tabindex.
Antoine Musso [Wed, 22 Sep 2004 01:41:53 +0000 (01:41 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=459  Sorting tabindex.

19 years agoPatch from http://bugzilla.wikipedia.org/show_bug.cgi?id=465 by ��var Arnfj��r��...
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>

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=490 Implement a header in Special...
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

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser"...
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.

19 years agoNow it is straightforward to fix bug 89, subst: template parameters.
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.

19 years agoTwo somewhat experimental changes before I fix bug 89:
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.

19 years agoRemoving variableSubstitution broke passing magic variables as template
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.

19 years agofix tab
Antoine Musso [Tue, 21 Sep 2004 19:47:31 +0000 (19:47 +0000)]
fix tab

19 years agoremove extraneous wfDebug
River Tarnell [Tue, 21 Sep 2004 19:05:46 +0000 (19:05 +0000)]
remove extraneous wfDebug

19 years agodon't error on certain inputs if $matches[] doesn't have a last element
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

19 years agouse comments instead of __ so we don't scare the users if erroneous ones creep in
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

19 years agofix a problem by not inserting __MWTEMPLATESECTION for section titles that don't...
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

19 years agoInstead of storing entire link attributes in wikitext for
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!!

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=538.
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.

19 years agoforwardport fixes for template section edit links from rel1_3
River Tarnell [Tue, 21 Sep 2004 16:56:48 +0000 (16:56 +0000)]
forwardport fixes for template section edit links from rel1_3

19 years ago* flips p-nav and p-personal
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

19 years agofix: inclusion of non-existent template is broken.
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.