Erik Moeller [Tue, 31 Aug 2004 10:23:55 +0000 (10:23 +0000)]
Custom namespaces:
To add a new namespace, just set $wgExtraNamespaces in LocalSettings.php.
Custom namespaces must begin at 100.
This is primarily intended to let us add a bunch of international versions
of the "Help:" namespace on Meta, so we can finally have a single place for
all documentation and easily dump/import it to other wikis.
Brion Vibber [Tue, 31 Aug 2004 02:26:55 +0000 (02:26 +0000)]
Avoid numeric and boolean interpretation of "0" in self-link check and Go searching.
Fix for bug 174: 0 as an article name behaves strangely (numerical comparison in article-ids).
http://bugzilla.wikipedia.org/show_bug.cgi?id=174
Arne Heizmann [Tue, 31 Aug 2004 01:43:31 +0000 (01:43 +0000)]
document $wgLocalTZoffset
Brion Vibber [Tue, 31 Aug 2004 01:01:44 +0000 (01:01 +0000)]
Quote seemingly numeric values in SQL, as they might
actually be strings which may not convert 1:1 if passed
to MySQL as numbers.
fix for Bug 255: Number articles on Special:Newpages
http://bugzilla.wikipedia.org/show_bug.cgi?id=255
Arne Heizmann [Mon, 30 Aug 2004 23:45:05 +0000 (23:45 +0000)]
Oops. Don't double-escape this.
Arne Heizmann [Mon, 30 Aug 2004 23:23:10 +0000 (23:23 +0000)]
comment was incomplete
Arne Heizmann [Mon, 30 Aug 2004 23:17:04 +0000 (23:17 +0000)]
Re-insert my changes to the Diff engine that make it so that the original text is diffed
and only HTML-escaped on output. JeLuF was seeing unescaped HTML because he had
$wgUseExternalDiffEngine turned on; hence, this commit makes it so that pre-escaped text is
sent to such an external engine just as before. Also fixes indentation and readability
issues, adds a few comments, and removes trailing whitespace in only 4(!) lines. :)
Jens Frank [Mon, 30 Aug 2004 20:23:36 +0000 (20:23 +0000)]
fix nasty error due to /dev/random exhaustion
Brion Vibber [Mon, 30 Aug 2004 08:22:15 +0000 (08:22 +0000)]
In the allpages index, make the whole line links to hopefully
reduce the confusion factor. Some people thought that the link
was actually a link _to_ the first page listed.
Since the centering is done with a table (yecch) each line is
actually three separate links, for the first page, "to", and
last page. All go to the same place, and on Monobook with link
underlining off it should look pretty decent. It's less attractive
on the classic skins with underlining on, but it's better than
the old look i think.
Also, removed the old caching with LogPage, since this no longer
works. Either the index generation needs to be made a lot faster,
or the index points should be saved in the querycache table.
http://bugzilla.wikipedia.org/show_bug.cgi?id=250
Brion Vibber [Mon, 30 Aug 2004 05:11:21 +0000 (05:11 +0000)]
When using wfMsgNoDB(), *don't use the cached messsages!*
This restores Special:Allmessages to working order; previously it was
showing the MediaWiki: message in both columns, which is not too helpful.
Brion Vibber [Sun, 29 Aug 2004 21:26:00 +0000 (21:26 +0000)]
Snarf the deletion log entries on the undelete page. Make the log items
and the archived history quite distinct by adding headings.
Jens Frank [Sun, 29 Aug 2004 19:07:18 +0000 (19:07 +0000)]
BUG#244 Backed out changes done in Patch 1.33 due to major
security problems. HTML tags were not escaped and it was possible to execute arbitrary javascript code
Jens Frank [Sun, 29 Aug 2004 18:25:25 +0000 (18:25 +0000)]
BUG#249 Add ecclipse meta files to .cvsignore
Jens Frank [Sun, 29 Aug 2004 18:13:23 +0000 (18:13 +0000)]
Fix handling of oldest revision with diff-links from the user contributions.
ENH#228 Have next/previous links in diffs.
Brion Vibber [Sun, 29 Aug 2004 10:30:23 +0000 (10:30 +0000)]
Unicode normalization routines.
See: http://www.unicode.org/reports/tr15/
Brion Vibber [Sun, 29 Aug 2004 02:04:01 +0000 (02:04 +0000)]
Adjust UTF-8 generator for correctness. (Upper private use area, probably affects nothing.)
Jens Frank [Sat, 28 Aug 2004 23:00:04 +0000 (23:00 +0000)]
ENH#59 Provide a (diff) link in Special:Contributions
Does not look up the next old revision for every change but links to pseudo-revision 'prev'.
DifferenceEngine looks up the previous revision if user requests a specific diff.
Arne Heizmann [Sat, 28 Aug 2004 22:11:47 +0000 (22:11 +0000)]
untested, but I'm pretty sure this fixes
http://bugzilla.wikipedia.org/show_bug.cgi?id=226
Arne Heizmann [Sat, 28 Aug 2004 21:37:56 +0000 (21:37 +0000)]
instead of HTML-escaping everything and then creating a diff of it, diff the original
text and HTML-escape each bit when we actually output it. Fixes
http://bugzilla.wikipedia.org/show_bug.cgi?id=216 in a non-hacky way.
Jens Frank [Sat, 28 Aug 2004 19:08:49 +0000 (19:08 +0000)]
BUG#160 Internationalize display of numbers:
* section numbers in TOC
* file size in edit page warning for big articles.
Arne Heizmann [Sat, 28 Aug 2004 19:08:17 +0000 (19:08 +0000)]
make "Revision as of [time] [date]" link to the relevant revision
Arne Heizmann [Sat, 28 Aug 2004 18:54:23 +0000 (18:54 +0000)]
fix typo
Arne Heizmann [Sat, 28 Aug 2004 18:11:14 +0000 (18:11 +0000)]
remove superfluous require_once('SpecialValidate.php');
Jens Frank [Sat, 28 Aug 2004 18:07:36 +0000 (18:07 +0000)]
BUG#162 Added \propto
Arne Heizmann [Sat, 28 Aug 2004 17:53:12 +0000 (17:53 +0000)]
NP_WIKIPEDIA => NP_PROJECT, and code readability stuff
Arne Heizmann [Sat, 28 Aug 2004 17:38:57 +0000 (17:38 +0000)]
make this less confusing
Arne Heizmann [Sat, 28 Aug 2004 17:34:54 +0000 (17:34 +0000)]
some code readability and "->'
Jens Frank [Sat, 28 Aug 2004 17:11:17 +0000 (17:11 +0000)]
BUG#200 Fixed text. Providing right number is much harder.
Jens Frank [Sat, 28 Aug 2004 16:42:57 +0000 (16:42 +0000)]
BUG#219 enable link shortcuts like [[:Category:catname|]]
Erik Moeller [Sat, 28 Aug 2004 13:32:14 +0000 (13:32 +0000)]
rename $wgUserTablePrefix to $wgSharedDB as discussed on #mediawiki
Jens Frank [Sat, 28 Aug 2004 12:07:05 +0000 (12:07 +0000)]
BUG#236 Log deletion of old image revisions.
Brion Vibber [Sat, 28 Aug 2004 07:29:54 +0000 (07:29 +0000)]
Removing the older GPL MemCachedClient.inc.php. Some time ago we switched
to Ryan Dean's BSD version (memcached-client.php)
Brion Vibber [Sat, 28 Aug 2004 00:38:59 +0000 (00:38 +0000)]
Don't display Upload link in Monobook sidebar if uploading is disabled.
Tim Starling [Fri, 27 Aug 2004 14:55:41 +0000 (14:55 +0000)]
Abstracted site name in LanguageFi.php. This required the implementation of general handling for inflected languages, in particular the {{grammar:}} tag
Tim Starling [Fri, 27 Aug 2004 13:42:09 +0000 (13:42 +0000)]
Fixed notice due to main-cleanup being entered at level 0
Tim Starling [Fri, 27 Aug 2004 13:40:27 +0000 (13:40 +0000)]
Table prefix bugs
Jens Frank [Fri, 27 Aug 2004 06:16:16 +0000 (06:16 +0000)]
removed forgotten debugging statement
Jens Frank [Fri, 27 Aug 2004 06:15:13 +0000 (06:15 +0000)]
cleanup of unused categoryMagic code
Jens Frank [Fri, 27 Aug 2004 05:23:52 +0000 (05:23 +0000)]
ENH#169: Provide plugin interface for skins. See also module "sampleskin" in extensions.
Jens Frank [Thu, 26 Aug 2004 20:45:26 +0000 (20:45 +0000)]
Remove call to parserOptions::setUseCategoryMagic. No longer needed with CategoryPage.php
Jens Frank [Thu, 26 Aug 2004 18:48:13 +0000 (18:48 +0000)]
BUG#206: replace <!--LINK tags by the link text for displaying text in TOCs
Thanks to Daniel D�sentrieb for his help writing the regexp.
Jens Frank [Wed, 25 Aug 2004 19:18:34 +0000 (19:18 +0000)]
Make ot=html default, as most user will probably use that view. ENH#185
Brion Vibber [Wed, 25 Aug 2004 17:24:31 +0000 (17:24 +0000)]
Old log page -> logging table importer.
Not yet fully functional.
Brion Vibber [Wed, 25 Aug 2004 17:23:25 +0000 (17:23 +0000)]
Remove obsolete notice about server times from upload, delete log header texts.
Brion Vibber [Wed, 25 Aug 2004 02:13:32 +0000 (02:13 +0000)]
Show pretty localized log names in Recentchanges instead of Special:Log/upload etc
Brion Vibber [Wed, 25 Aug 2004 02:12:02 +0000 (02:12 +0000)]
NS_PROJECT, NS_PROJECT_TALK -- will phase out NS_WIKIPEDIA et all later
Jens Frank [Tue, 24 Aug 2004 20:41:07 +0000 (20:41 +0000)]
Split user table into two parts: user and user_rights, for single login. BUG#57
Jens Frank [Tue, 24 Aug 2004 19:26:21 +0000 (19:26 +0000)]
Replaced old setIgnoreSQLErrors by newer ignoreErrors
Erik Moeller [Tue, 24 Aug 2004 18:04:37 +0000 (18:04 +0000)]
do not parse malformed sections for section editing (fix bug #186)
Brion Vibber [Tue, 24 Aug 2004 17:56:20 +0000 (17:56 +0000)]
Check for validation mode and load validation code if necessary before trying to use it.
Erik Moeller [Tue, 24 Aug 2004 17:40:13 +0000 (17:40 +0000)]
use reference instead of value for title object parameter
Erik Moeller [Tue, 24 Aug 2004 17:19:37 +0000 (17:19 +0000)]
adds '->' links to section before autogenerated section edit comments,
in recent changes, history, watchlist and contributions list. '->' is
defined in MediaWiki:sectionlink.
closes http://bugzilla.wikipedia.org/show_bug.cgi?id=45
Brion Vibber [Tue, 24 Aug 2004 08:11:46 +0000 (08:11 +0000)]
Special:Log and the logging table -- unified logging scariness!
Replaces the ugly, often breaking, manually archived log pages with
a nice clean table which can be sorted, trimmed, viewed in pieces, etc.
You can see all logged actions by some user, or affecting some page,
and can combine the views of all all logs in one.
There are probably still some broken things in here, but I want this
committed before the patch gets any bigger.
recentchanges table is altered to make rc_namespace signed so Special:
links can be listed in it.
Brion Vibber [Tue, 24 Aug 2004 03:10:51 +0000 (03:10 +0000)]
Patch by Ivan Krstic, slightly modified, for the session handler wrong setting problem.
Bug 179: Detect when session.save_handler set incorrectly
http://bugzilla.wikipedia.org/show_bug.cgi?id=179
Jens Frank [Mon, 23 Aug 2004 18:49:05 +0000 (18:49 +0000)]
New global setting: wgUserTablePrefix
set wgUserTablePrefix to the name of the DB where your users
table is for single login. Disabled by default.
If set, the users table will be fetched from another MySQL schema (called
database by MySQL). Can not be on a different MySQL server, though.
Brion Vibber [Mon, 23 Aug 2004 02:19:02 +0000 (02:19 +0000)]
Start migrating wfCheckLimits to WebRequest::getLimitOffset()
Antoine Musso [Mon, 23 Aug 2004 00:49:02 +0000 (00:49 +0000)]
rewrite of the dmoz-like category browser. Known bugs: makeKnownLink instead of makeLink, <br> is put at beginning instead of the end
Brion Vibber [Sun, 22 Aug 2004 23:55:36 +0000 (23:55 +0000)]
Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
and use it in a few places where user names, images, or messages are being
used to create titles.
Brion Vibber [Sun, 22 Aug 2004 23:40:26 +0000 (23:40 +0000)]
Change 'welcomecreation' and 'loginsuccess' messages from HTML to WikiText.
Fix XML well-formedness error in the creation message.
Brion Vibber [Sun, 22 Aug 2004 23:32:05 +0000 (23:32 +0000)]
Fix typo in quote conversion
Brion Vibber [Sun, 22 Aug 2004 23:19:12 +0000 (23:19 +0000)]
Set up the Title fields directly in Title::makeTitle(), skipping the
secureAndSplit() step. This saves a lot of time and memory when working
with titles that are known-good (coming out of the database or other
Title objects, for instance).
Warning: if you feed invalid input to makeTitle() it will *not* be
checked for validity anymore and may do bad things. Don't do that.
Brion Vibber [Sun, 22 Aug 2004 22:22:54 +0000 (22:22 +0000)]
* Fix notice in PHP output mode
* Fix XML well-formedness error in header (escape those URLs!)
* Redo 'HTML' mode to output HTML directly instead of wiki-HTML hybrid.
This runs over 3 times faster and uses a lot less memory. However it
still doesn't work with an 8mb memory_limit...
Jens Frank [Sun, 22 Aug 2004 22:03:51 +0000 (22:03 +0000)]
Make [delete] and (delete all revisions) links act the same way:
Delete all old revisions and the image description page
Antoine Musso [Sun, 22 Aug 2004 17:42:53 +0000 (17:42 +0000)]
some " to ' conversions
Antoine Musso [Sun, 22 Aug 2004 17:24:50 +0000 (17:24 +0000)]
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
Brion Vibber [Sun, 22 Aug 2004 09:57:12 +0000 (09:57 +0000)]
Remove what seems to be an accidentally checked-in testing line:
'/([^> ]+(0(1|3|9);)[^< ]*)/i' => '<span class="diacrit">\\1</span>',
(Originally added by gwicke in revision 1.197)
With very long 'words' this regexp is super slow, and causes timeouts:
Bug 183: timeout in Parser.php with Tidy
http://bugzilla.wikipedia.org/show_bug.cgi?id=183
Jens Frank [Sun, 22 Aug 2004 09:42:12 +0000 (09:42 +0000)]
Moved category stuff to CategoryPage, copying logic of ImagePage
Brion Vibber [Sun, 22 Aug 2004 09:08:04 +0000 (09:08 +0000)]
Change some search index update code to do two regexps backwards.
These tail-anchored regexps are insanely slow. The worst case comes
when Japanese or Chinese text (ie, no word spacing) is written on
a wiki configured for Western UTF-8 mode: the Unicode characters are
expanded to hex codes and the "words" are very long paragraph-length
monstrosities. On a large page the previous regexps may take over 20
seconds *each* on a 1GHz-level processor on such pages of non-trivial
length...
The reversed versions which are consistently much faster, for instance
by a factor of 10000 for the pathological case and a factor of 10 for
more typical English-style pages.
Brion Vibber [Sun, 22 Aug 2004 09:07:31 +0000 (09:07 +0000)]
Add some profiling points
Arne Heizmann [Sun, 22 Aug 2004 08:51:28 +0000 (08:51 +0000)]
code readability
Jens Frank [Sun, 22 Aug 2004 07:38:16 +0000 (07:38 +0000)]
BUG#175 Don't show confusing "* (Lschen) (Aktuell) 23:59, 31. Dez 1969 . . ( Byte)" line
if there is no entry in the database
Jens Frank [Sun, 22 Aug 2004 07:22:13 +0000 (07:22 +0000)]
Fix notice regarding invalid array index -1
Antoine Musso [Sat, 21 Aug 2004 23:16:32 +0000 (23:16 +0000)]
removing call to the database for "recentchangestext". That's automaticly get by calling wfMsg( "recentchangestext" )
Antoine Musso [Sat, 21 Aug 2004 23:11:54 +0000 (23:11 +0000)]
double to single quotes
Antoine Musso [Sat, 21 Aug 2004 22:39:56 +0000 (22:39 +0000)]
Fix bugzilla bug #100. Redirects can be done to category either by:
#REDIRECT [[Category:Music]] (article will be in the category)
or
#REDIRECT [[:Category:Music]] (article left out of category)
Antoine Musso [Sat, 21 Aug 2004 22:11:50 +0000 (22:11 +0000)]
Make a link to wfMsg('disambiguationspage')
Antoine Musso [Sat, 21 Aug 2004 22:05:47 +0000 (22:05 +0000)]
Moving disambiguations code from specialMaintenance. Fixing the function meantime
Brion Vibber [Sat, 21 Aug 2004 20:57:47 +0000 (20:57 +0000)]
* Fix notice from uninitialized variable in date()
* Call up to LanguageUtf8::stripForSearch to do the actual case folding/armoring. Reduces code duplication and works when using mb_* mode
Antoine Musso [Sat, 21 Aug 2004 19:59:43 +0000 (19:59 +0000)]
Reverting patch 1.246 made by Guillaume. It breaks things such as [[100]].
Tim Starling [Sat, 21 Aug 2004 15:14:56 +0000 (15:14 +0000)]
minor bug fix
Tim Starling [Sat, 21 Aug 2004 15:04:41 +0000 (15:04 +0000)]
replaceLinkHolders -> transformBuffer
Tim Starling [Sat, 21 Aug 2004 14:56:07 +0000 (14:56 +0000)]
Replaced link holders with actual links before saving into the cache, thereby speeding up parser cache hits. Profiling confirms a marked decrease in cache hit service time
Tim Starling [Sat, 21 Aug 2004 14:14:58 +0000 (14:14 +0000)]
Hey! Stop breaking my functions!
Tim Starling [Sat, 21 Aug 2004 13:59:48 +0000 (13:59 +0000)]
New feature: Turck MMCache shared memory as a lightweight, windows-compatible replacement for memcached
Tim Starling [Sat, 21 Aug 2004 13:57:47 +0000 (13:57 +0000)]
Sort results by total time
Tim Starling [Sat, 21 Aug 2004 11:40:18 +0000 (11:40 +0000)]
Fixed bug which caused ru.wikipedia to go offline when someone put in MediaWiki:Mainpage
Brion Vibber [Sat, 21 Aug 2004 10:13:36 +0000 (10:13 +0000)]
Rip out some old debugging code from when this was new.
Brion Vibber [Sat, 21 Aug 2004 10:04:30 +0000 (10:04 +0000)]
Only load memcached-client.php if we're really using it. Saves about 120kb memory when off.
Brion Vibber [Sat, 21 Aug 2004 09:51:01 +0000 (09:51 +0000)]
Don't include SearchEngine.php when it's not used. Saves about 180k of memory at runtime.
Brion Vibber [Sat, 21 Aug 2004 09:32:34 +0000 (09:32 +0000)]
Don't load DifferenceEngine.php when not needed. This saves 200-300kb of ram.
Brion Vibber [Sat, 21 Aug 2004 09:25:24 +0000 (09:25 +0000)]
Fix notices from stupid code in last commit
Brion Vibber [Sat, 21 Aug 2004 08:54:52 +0000 (08:54 +0000)]
Don't bother loading $wikiLowerChars and $wikiUpperChars if the mb_*
functions are available. This saves about 100kb of precious memory.
Also fixed a buglet in the mb_* version of unicode search stripping,
and some notices in zh.
Brion Vibber [Sat, 21 Aug 2004 08:50:49 +0000 (08:50 +0000)]
Stray space
Brion Vibber [Sat, 21 Aug 2004 08:27:03 +0000 (08:27 +0000)]
Record and report memory usage change in profiling.
(Only works on PHP 4.3.2 or higher with --enable-memory-limit, otherwise reports 0.)
Tim Starling [Fri, 20 Aug 2004 15:32:56 +0000 (15:32 +0000)]
fix notice
Tim Starling [Fri, 20 Aug 2004 14:59:49 +0000 (14:59 +0000)]
FOR UPDATE mode for Article class, and for getArticleID function of Title. Using these modes in EditPage.php to prevent odd things happening on section edits and merged conflicts
Tim Starling [Fri, 20 Aug 2004 14:50:03 +0000 (14:50 +0000)]
Fixed profiling
Domas Mituzas [Fri, 20 Aug 2004 13:43:45 +0000 (13:43 +0000)]
fixup timestamps
Domas Mituzas [Fri, 20 Aug 2004 12:47:46 +0000 (12:47 +0000)]
fixup timestamps
Domas Mituzas [Fri, 20 Aug 2004 12:47:12 +0000 (12:47 +0000)]
database abstraction