Wil Mahan [Wed, 29 Sep 2004 04:28:40 +0000 (04:28 +0000)]
Remove the "random" table since it is no longer used;
document categorylinks, hitcounter, searchindex,
interwiki, and user.user_token
Brion Vibber [Tue, 28 Sep 2004 23:32:18 +0000 (23:32 +0000)]
More checks for IE hideousness.
Brion Vibber [Tue, 28 Sep 2004 22:16:06 +0000 (22:16 +0000)]
Remove some unnecessary PHPTAL 1 stub bits
Domas Mituzas [Tue, 28 Sep 2004 19:54:51 +0000 (19:54 +0000)]
allow turning off image path hashing. there was a feature request for that somewhere.
Wil Mahan [Mon, 27 Sep 2004 21:14:52 +0000 (21:14 +0000)]
1) Use CREATE TEMPORARY TABLE ... LIKE for MySQL >= 4.1
and PostgreSQL (untested, but should fix bug 585). Use a
hack for older MySQL versions that doesn't require including
a .sql file.
2) Die gracefully when an article has an invalid title or
already exists in the database.
3) Detect and report duplicate sections in the test file.
Wil Mahan [Mon, 27 Sep 2004 21:01:39 +0000 (21:01 +0000)]
A different fix for ':' in definitions that makes
[http://blah foo : bar ]: baz
work as expected
Zheng Zhu [Mon, 27 Sep 2004 15:10:26 +0000 (15:10 +0000)]
Formatting fix (tab instead of space)
Brion Vibber [Mon, 27 Sep 2004 07:25:53 +0000 (07:25 +0000)]
Use 'includes/DefaultSettings.php' in preparation for running without include_path altered; things should now work if you just take that line out from LocalSettings.
Brion Vibber [Mon, 27 Sep 2004 07:18:49 +0000 (07:18 +0000)]
Tweak image img_name index updater to current tables.sql (primary key)
Brion Vibber [Mon, 27 Sep 2004 07:01:38 +0000 (07:01 +0000)]
Tweak to work with no include path and working dir in the installer
Brion Vibber [Mon, 27 Sep 2004 06:48:15 +0000 (06:48 +0000)]
Obsoleted by refreshlinks, apparently forgot to remove these files.
Brion Vibber [Mon, 27 Sep 2004 06:23:33 +0000 (06:23 +0000)]
Far from finished in-place UTF-8 wiki converter.
I had this code lying around for a while and wanted to check it in before I forget about it.
Brion Vibber [Mon, 27 Sep 2004 06:20:57 +0000 (06:20 +0000)]
Shut up notices
Wil Mahan [Mon, 27 Sep 2004 06:14:36 +0000 (06:14 +0000)]
More annoying definition list test cases...
Wil Mahan [Mon, 27 Sep 2004 06:13:07 +0000 (06:13 +0000)]
Fix "; url://blah blah : definition" definition lists and related cases,
noted by brion and JeLuF
Wil Mahan [Mon, 27 Sep 2004 05:33:17 +0000 (05:33 +0000)]
Disable msgnw test because no one cares about msgnw anyway;
add RFC test, more definition lists containing ':' tests
Brion Vibber [Mon, 27 Sep 2004 05:00:04 +0000 (05:00 +0000)]
Add a couple definition list tests for colon & space bugs
Wil Mahan [Mon, 27 Sep 2004 04:44:00 +0000 (04:44 +0000)]
Fix bug 77: semicolon-colon wikitext syntax requires extra space now;
add some profiling statements
Brion Vibber [Mon, 27 Sep 2004 04:43:29 +0000 (04:43 +0000)]
Shut up PHP notification warnings about $_SERVER['SERVER_NAME']
being unaccessible from the command line. Fall back to $_SERVER['HOSTNAME']
or 'localhost' if not available.
Brion Vibber [Mon, 27 Sep 2004 03:10:28 +0000 (03:10 +0000)]
PHPTAL 1.0/PHP 5 fix: missing 'viewcount' sometimes.
Brion Vibber [Mon, 27 Sep 2004 03:05:20 +0000 (03:05 +0000)]
* Hacky fix for PHPTAL 0.7 bug to be consistent with PHPTAL 1.0 (${foo} interpolations not escaped)
* Switch usercss & userjs bits due to above; SkinPHPTal now sets them _with_ the CDATA markers, as PHPTAL seems unwilling to recognize XML tags with tal: bits on them inside a CDATA section in the template (though oddly enough it interpreted the ${bits} just fine!)
Brion Vibber [Mon, 27 Sep 2004 02:59:24 +0000 (02:59 +0000)]
Doc comments
Brion Vibber [Mon, 27 Sep 2004 01:30:27 +0000 (01:30 +0000)]
More fixes for PHPTAL 1.0 on PHP5. Apparently it's a bug in PHPTAl 0.7 that
substitutions with ${name} are not HTML-escaped... Replaced various inline
bits with tal:content or tal:replace using the 'structure' keyword to do
this in a compatible way, but some bits may be remaining.
Also changed some uses to tal:attributes, and took the htmlspecialchars()
off of the settings in SkinPHPTal to let them get escaped normally.
The main page logo link is currently bitten by this as i18n:attributes
and tal:attributes can't be used together on 0.7.0; this needs tweaking.
PHPTAL 1.0 currently doesn't escape the tal:attributes bits, but this seems
to be a simple bug and should be fixed soon, I hope.
Zheng Zhu [Mon, 27 Sep 2004 00:06:40 +0000 (00:06 +0000)]
let getVariants() returns the content language by default. this makes sure messages of the content language are drawn from the MediaWiki namespace.
Zheng Zhu [Sun, 26 Sep 2004 23:45:18 +0000 (23:45 +0000)]
Use wfMsgForContent() when making links
Brion Vibber [Sun, 26 Sep 2004 19:49:44 +0000 (19:49 +0000)]
Back out kturner's old table restructure for now.
This will require downtiime on upgrade, so we're not going to do it until we have a better idea of the cost and can make all necessary changes at once to minimize it.
Wil Mahan [Sun, 26 Sep 2004 17:59:08 +0000 (17:59 +0000)]
Fix problem with RFC magic links, as noted at bug 479
Tim Starling [Sun, 26 Sep 2004 16:29:03 +0000 (16:29 +0000)]
Oops, no UTF8
Tim Starling [Sun, 26 Sep 2004 16:09:33 +0000 (16:09 +0000)]
New language file by Quackor, slightly modified by me
Jens Frank [Sun, 26 Sep 2004 15:11:30 +0000 (15:11 +0000)]
Removed testcode.
River Tarnell [Sun, 26 Sep 2004 14:43:50 +0000 (14:43 +0000)]
include sql patch
River Tarnell [Sun, 26 Sep 2004 14:43:12 +0000 (14:43 +0000)]
remove old_namespace and old_title from old table.
Tim Starling [Sun, 26 Sep 2004 13:41:21 +0000 (13:41 +0000)]
comments
River Tarnell [Sun, 26 Sep 2004 11:17:34 +0000 (11:17 +0000)]
user_token
Tim Starling [Sun, 26 Sep 2004 10:41:48 +0000 (10:41 +0000)]
More informative error message for when the user forgot to move LocalSettings.php. Moved recently-added setup code from index.php to Setup.php where it's meant to be. index.php isn't the only entry point!
Tim Starling [Sun, 26 Sep 2004 10:07:31 +0000 (10:07 +0000)]
Added check for valid user permissions when updating database
Jens Frank [Sun, 26 Sep 2004 09:51:41 +0000 (09:51 +0000)]
Avoid PHP warning about undefined constant
Jens Frank [Sun, 26 Sep 2004 09:45:35 +0000 (09:45 +0000)]
BUG#419 Added global variable that defines the elements of the navigation sidebar.
Made MonoBook use the global sidebar definition
Tim Starling [Sun, 26 Sep 2004 09:22:49 +0000 (09:22 +0000)]
Refactored updaters.inc. With all those functions doing virtually the same thing, it was getting kind of silly
Domas Mituzas [Sun, 26 Sep 2004 09:03:45 +0000 (09:03 +0000)]
create schema mediawiki and store all objects in it
add user_token
Tim Starling [Sun, 26 Sep 2004 08:53:48 +0000 (08:53 +0000)]
user_token field (from REL1_3A)
Tim Starling [Sun, 26 Sep 2004 08:25:12 +0000 (08:25 +0000)]
Improved security: don't send out password hashes or store them in the session, use random tokens instead (from REL1_3A)
Tim Starling [Sun, 26 Sep 2004 08:06:04 +0000 (08:06 +0000)]
protection from multiple includes (from REL1_3A)
Tim Starling [Sun, 26 Sep 2004 06:45:30 +0000 (06:45 +0000)]
Extensions for testing and debugging
Brion Vibber [Sun, 26 Sep 2004 01:56:43 +0000 (01:56 +0000)]
Start on compatibility with PHPTAL 1.0 (on PHP5).
Currently requires that PHPTAL 1.0.0d2 be separately installed and hacked up a little, and $wgUsePHPTal manually enabled.
Zheng Zhu [Sun, 26 Sep 2004 01:50:26 +0000 (01:50 +0000)]
some more UI related fix
Brion Vibber [Sun, 26 Sep 2004 00:02:28 +0000 (00:02 +0000)]
Fix fallback message checks.
Zheng Zhu [Sun, 26 Sep 2004 00:00:52 +0000 (00:00 +0000)]
fix fallback in wfMsgReal() as well
Brion Vibber [Sat, 25 Sep 2004 23:54:42 +0000 (23:54 +0000)]
Fix fallback for missing messages
Brion Vibber [Sat, 25 Sep 2004 21:57:27 +0000 (21:57 +0000)]
Finish fixing the default language.
Brion Vibber [Sat, 25 Sep 2004 21:49:04 +0000 (21:49 +0000)]
Get CVS to shut up about the build files & executable
Wil Mahan [Sat, 25 Sep 2004 21:20:32 +0000 (21:20 +0000)]
Work with $wgUseTidy again, and add more tests (we now have 100!)
Wil Mahan [Sat, 25 Sep 2004 20:35:38 +0000 (20:35 +0000)]
Don't strip leading ':' in maybeDoSubpageLink() so that
{{:foo}} works for including from main namespace.
Wil Mahan [Sat, 25 Sep 2004 20:13:14 +0000 (20:13 +0000)]
Fix bug 561: {{/Subpage}} acts like {{Template:/Subpage}}, by
breaking out a maybeDoSubpageLink() function and using it when
including a template.
Wil Mahan [Sat, 25 Sep 2004 18:22:21 +0000 (18:22 +0000)]
Move tidy call from Parser to OutputPage so that it happens
after link placeholder replacement.
Tim Starling [Sat, 25 Sep 2004 16:54:31 +0000 (16:54 +0000)]
a couple of extra functions, useful for debugging
Tim Starling [Sat, 25 Sep 2004 16:50:27 +0000 (16:50 +0000)]
More debugging info, better hashing function - crc32() goes negative in live PHP!
Wil Mahan [Sat, 25 Sep 2004 16:06:10 +0000 (16:06 +0000)]
Undo some of my changes to sections from templates; I think they
were wrong
Tim Starling [Sat, 25 Sep 2004 14:32:19 +0000 (14:32 +0000)]
Second parameter to wfMsg(nogomatch)
Tim Starling [Sat, 25 Sep 2004 14:02:04 +0000 (14:02 +0000)]
various modifications found lying around in the live copy. Some of these should probably be incorporated into the main development branches
Brion Vibber [Sat, 25 Sep 2004 10:50:01 +0000 (10:50 +0000)]
Turning validation back off by default. I'm assuming this was checked in by mistake.
Brion Vibber [Sat, 25 Sep 2004 10:38:34 +0000 (10:38 +0000)]
Avoid gratuitously breaking configurations: continue to use
$wgLanguageCode in LocalSettings.php, and pass that value on
to $wgContLanguageCode internally.
Brion Vibber [Sat, 25 Sep 2004 10:31:42 +0000 (10:31 +0000)]
Adjust some spacing
Brion Vibber [Sat, 25 Sep 2004 10:08:42 +0000 (10:08 +0000)]
Change LanguageEn to be UTF-8 by default. This fixes the problem with
language selection destroying non-ASCII characters when English was selected.
River Tarnell [Sat, 25 Sep 2004 09:57:03 +0000 (09:57 +0000)]
disallow empty searches
Brion Vibber [Sat, 25 Sep 2004 09:49:04 +0000 (09:49 +0000)]
Set wgUploadPath for tests so we don't all have to be using Wil's filesystem layout. ;)
Jens Frank [Sat, 25 Sep 2004 08:32:53 +0000 (08:32 +0000)]
Avoid warning when incrementing non-existing element of array
Wil Mahan [Sat, 25 Sep 2004 05:58:49 +0000 (05:58 +0000)]
New tests for sections and various bugs
Wil Mahan [Sat, 25 Sep 2004 05:58:05 +0000 (05:58 +0000)]
Add a "--regex" option to limit which tests are run; replace
"!!disabled" with "!!option ... disabled"
Wil Mahan [Sat, 25 Sep 2004 05:16:38 +0000 (05:16 +0000)]
Fix two parser bugs: bug 41 and bug 529. For the former, I replaced
a broken check for '{{{' in braceSubstitution(). For the latter,
I undid part of JeLuF's fix to bug 523 and changed
braceSubstitution() to add a newline '{|', '#', '*', ';', or ':'
come at the beginning of a template and a newline isn't already
present. Also, minor cleanups to the template section code.
Zheng Zhu [Sat, 25 Sep 2004 04:15:47 +0000 (04:15 +0000)]
first attempt to support multiple language variants in the MediaWiki: namespace.
Zheng Zhu [Sat, 25 Sep 2004 02:23:04 +0000 (02:23 +0000)]
removed caching of UI messages; it does not make sense, after all.
Wil Mahan [Fri, 24 Sep 2004 21:49:56 +0000 (21:49 +0000)]
Add an option for setting the title; add test for interlanguage links;
remove dupliate test
Wil Mahan [Fri, 24 Sep 2004 20:56:45 +0000 (20:56 +0000)]
Add tests for subpages (+ an option to enable them), images,
more template cases, definition lists/indentation, and
preformatted text.
Zheng Zhu [Fri, 24 Sep 2004 19:04:28 +0000 (19:04 +0000)]
Simplified the LanguageZh class
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.