Brion Vibber [Tue, 23 Nov 2004 12:57:32 +0000 (12:57 +0000)]
(bug 482) Don't print TOC box when hidden. Patch by Shane King (bugzilla.wikipedia.org/show_bug.cgi?id=482)
Brion Vibber [Tue, 23 Nov 2004 07:41:07 +0000 (07:41 +0000)]
Profiling points etc
Brion Vibber [Tue, 23 Nov 2004 07:38:42 +0000 (07:38 +0000)]
Legibility, profiling points, comments, tweaking. Removed unused isLog() function, replaced some Namespace::getXXX with NS_XXX
Brion Vibber [Tue, 23 Nov 2004 07:25:22 +0000 (07:25 +0000)]
* Sort the profiling log output so the slowest is at the bottom; it's easier to read the log this way.
* Add min and max execution times for each function
Brion Vibber [Tue, 23 Nov 2004 06:38:11 +0000 (06:38 +0000)]
Inner loop optimization: when rendering a wiki page, Language::ucfirst() gets called for every link. Using the faster ASCII function when possible saves a little time on longer pages.
Brion Vibber [Tue, 23 Nov 2004 05:36:40 +0000 (05:36 +0000)]
Switch do_html_entity_decode() from using strtr() to preg_replace(), which is much faster on the common case (no match).
On pages with a large number of links (hundreds) this actually made up about 1/10 of the time spent in Parser::replaceInternalLinks().
Brion Vibber [Tue, 23 Nov 2004 05:28:06 +0000 (05:28 +0000)]
Make sure wfProfileIn is available for testing, in case some silly function uses it
Zheng Zhu [Tue, 23 Nov 2004 01:31:54 +0000 (01:31 +0000)]
Try again to fix wrong variable scope...
Zheng Zhu [Mon, 22 Nov 2004 22:10:34 +0000 (22:10 +0000)]
segment() should only do segmentation, and let the caller do the conversion to hex.
Zheng Zhu [Mon, 22 Nov 2004 22:03:13 +0000 (22:03 +0000)]
Still need to convert UTF8 to a hex string for search.
Zheng Zhu [Mon, 22 Nov 2004 21:43:46 +0000 (21:43 +0000)]
forgot global...
Zheng Zhu [Mon, 22 Nov 2004 21:14:38 +0000 (21:14 +0000)]
Convert a link to all variants before checking for existence. The reduce the number of connections made to zhdaemon.
Zheng Zhu [Mon, 22 Nov 2004 21:10:18 +0000 (21:10 +0000)]
added convertToAllVariants() to query zhdaemon for all variants.
Brion Vibber [Mon, 22 Nov 2004 10:05:11 +0000 (10:05 +0000)]
Inner loop optimization: reverse order of conditions for language variant link check, so the condition short-circuits correctly and we can skip the expensive per-link lookup.
Brion Vibber [Mon, 22 Nov 2004 06:50:37 +0000 (06:50 +0000)]
Profiling points; some swapping of wfMsg for wfMsgForContent
Brion Vibber [Mon, 22 Nov 2004 06:49:58 +0000 (06:49 +0000)]
Forgot to commit this: enable parser cache by default
Brion Vibber [Mon, 22 Nov 2004 06:45:01 +0000 (06:45 +0000)]
* Remove unnecessary {{ns:#}} vars. The generic names are already replaced by the title/linking code, and the variable replacement overhead for links in the skin is relatively high for parser-cache hits.
* Disable the site support link by default, as in earlier versions. (Now via "-" in the name to match others)
* Fix a deletion log link to new system
Brion Vibber [Mon, 22 Nov 2004 05:12:50 +0000 (05:12 +0000)]
Don't use setOption() in loadDefaultFromLanguage, as this triggers some slow reloading.
Code style tweaks and profiling points.
Brion Vibber [Mon, 22 Nov 2004 05:09:32 +0000 (05:09 +0000)]
Use the content language's linktrail
Zheng Zhu [Mon, 22 Nov 2004 04:19:57 +0000 (04:19 +0000)]
Updated conversion table
Zheng Zhu [Mon, 22 Nov 2004 04:19:25 +0000 (04:19 +0000)]
fix error in last commit
Zheng Zhu [Mon, 22 Nov 2004 04:13:31 +0000 (04:13 +0000)]
small fixes
Zheng Zhu [Mon, 22 Nov 2004 04:13:08 +0000 (04:13 +0000)]
Updated manual tables
Brion Vibber [Mon, 22 Nov 2004 01:33:47 +0000 (01:33 +0000)]
Use compression in the objectcache table if zlib support is available.
Since we'll be using this for the parser cache when memcached is not
set up, we'll want to actually put junk in there and saving space is nice.
Brion Vibber [Mon, 22 Nov 2004 01:16:44 +0000 (01:16 +0000)]
Let the parser cache use the objectcache table if memcached isn't set up,
and enable it by default. This provides significant speedups on medium
to long pages, though for busier sites the garbage collection probably
should be adjusted.
Brion Vibber [Sun, 21 Nov 2004 14:07:24 +0000 (14:07 +0000)]
Avoid asking for the day, month etc name messages and the total number of articles over and over. InitialiseVariables() gets called during message transformations, so this saves several milliseconds of startup time which can be a significant portion of execution time on ParserCache'd page views.
Brion Vibber [Sun, 21 Nov 2004 13:56:04 +0000 (13:56 +0000)]
Code style
Brion Vibber [Sun, 21 Nov 2004 13:54:31 +0000 (13:54 +0000)]
Code formatting; comments. Removed debug option from wfMsg which could poison caches and be generally annoying if let into the wild.
Brion Vibber [Sun, 21 Nov 2004 09:47:00 +0000 (09:47 +0000)]
Try to keep Title class as a value object: remove the setNamespace() method. Make a new object if you want to change it...
Brion Vibber [Sun, 21 Nov 2004 09:01:30 +0000 (09:01 +0000)]
Set default overrides bac k to defaults
Brion Vibber [Sun, 21 Nov 2004 08:58:46 +0000 (08:58 +0000)]
Fix some variable typos
Brion Vibber [Sun, 21 Nov 2004 07:51:41 +0000 (07:51 +0000)]
(bug 924) $wgDefaultUserOptions to set the preference defaults from LocalSettings
Brion Vibber [Sun, 21 Nov 2004 07:36:46 +0000 (07:36 +0000)]
Code formatting; clean up redundant method declarations.
Brion Vibber [Sun, 21 Nov 2004 05:50:04 +0000 (05:50 +0000)]
Remove unmaintained serialized copies of messages from Wikipedia.
Relevant translations that are needed should be copied/ported into the language files.
Brion Vibber [Sun, 21 Nov 2004 03:54:26 +0000 (03:54 +0000)]
Don't try to dl() the wikidiff module if it's already loaded.
Brion Vibber [Sun, 21 Nov 2004 02:30:25 +0000 (02:30 +0000)]
tyop
Brion Vibber [Sun, 21 Nov 2004 02:20:52 +0000 (02:20 +0000)]
Fix obsolete function call
Brion Vibber [Sun, 21 Nov 2004 02:09:31 +0000 (02:09 +0000)]
Capitalization fix in memcached setting
Antoine Musso [Sat, 20 Nov 2004 13:26:49 +0000 (13:26 +0000)]
cosmetic change submitted by wikinaut on irc
Jens Frank [Sat, 20 Nov 2004 11:28:37 +0000 (11:28 +0000)]
Added magic PubMed-Link, links to PubMed DB can be set like RFC
or ISBN links, using PMID
15545900 magic link.
Some code beautifying.
Brion Vibber [Sat, 20 Nov 2004 10:29:46 +0000 (10:29 +0000)]
Move some misplaced extensions from main MediaWiki module to extensions
Brion Vibber [Sat, 20 Nov 2004 04:27:33 +0000 (04:27 +0000)]
Remove bundled copy of PHPTAL, no longer needed for MonoBook. The user can install their own local copy if they need it.
Brion Vibber [Sat, 20 Nov 2004 04:23:52 +0000 (04:23 +0000)]
Preparing to remove the bundled PHPTAL and let the PHPTAL skins (if enabled) work with an externally-installed PEAR+PHPTAL.
$wgUsePHPTal setting no longer exists; if a PHPTAL-based skin is used it will attempt to load PEAR+PHPTAL and gracefully disable itself if it can't.
Todo: get the list of skins in preferences to reflect this kind of disabling, so unselectable skins don't need to be moved into disabled subdir to be hidden.
Antoine Musso [Sat, 20 Nov 2004 03:45:38 +0000 (03:45 +0000)]
specialPageList() : comment about bug 913
Tim Starling [Sat, 20 Nov 2004 03:40:50 +0000 (03:40 +0000)]
in category browser, makeKnownLink() -> makeLink(), now that the delayed link expansion bug is fixed
Tim Starling [Sat, 20 Nov 2004 03:35:00 +0000 (03:35 +0000)]
fixed bug 875, circular category references cause timeout or stack overflow
Brion Vibber [Fri, 19 Nov 2004 12:50:21 +0000 (12:50 +0000)]
fix notice: uninitialised var
Brion Vibber [Fri, 19 Nov 2004 12:44:51 +0000 (12:44 +0000)]
doc comment fiddling
Brion Vibber [Fri, 19 Nov 2004 08:57:17 +0000 (08:57 +0000)]
Fix MySkin for the post-PHPTAL era
Brion Vibber [Fri, 19 Nov 2004 07:37:46 +0000 (07:37 +0000)]
* remove PHP5 warning; PHPTAL no longer needed for MonoBook
* set $wgUsePHPTal to false; not sure if it's really needed anymore. Disabled TAL version of MonoBook
* re-enabled display of PEAR errors from PHPTal skins (if they get used)
Brion Vibber [Fri, 19 Nov 2004 07:15:42 +0000 (07:15 +0000)]
Still ugly, but fixed some glitches
Brion Vibber [Fri, 19 Nov 2004 04:14:59 +0000 (04:14 +0000)]
Convert MonoBook to pure PHP, not requiring PHPTAL.
Right now the code is ugly, pretty much a straight convert. Will pretty up later.
Brion Vibber [Thu, 18 Nov 2004 23:41:46 +0000 (23:41 +0000)]
Spaces to tabs
Mr. E23 [Thu, 18 Nov 2004 18:57:51 +0000 (18:57 +0000)]
Added 'cont.' to category listing headers when the listing continues from the previous column
Tim Starling [Thu, 18 Nov 2004 11:43:07 +0000 (11:43 +0000)]
Moved non-working skins to "disabled" subdirectory
Tim Starling [Thu, 18 Nov 2004 11:37:14 +0000 (11:37 +0000)]
Less obtrusive RC patrol feature, also works with enhanced RC, disable client side cache for Special:Recentchanges if $wgUseRCPatrol
Brion Vibber [Wed, 17 Nov 2004 11:47:22 +0000 (11:47 +0000)]
* Partial fix for pages starting with lowercase letters (??)
* CamelCase and /Subpage link conversion (adds a new revision by 'Conversion script' instead of overwriting previous edit)
Brion Vibber [Wed, 17 Nov 2004 06:58:51 +0000 (06:58 +0000)]
Fix tooltip for 'related changes'
Brion Vibber [Tue, 16 Nov 2004 05:28:47 +0000 (05:28 +0000)]
Experimental authentication plugin interface. Will require a little bit more work to nail down all requirements.
Brion Vibber [Mon, 15 Nov 2004 12:54:45 +0000 (12:54 +0000)]
Fix opening of session for users visiting with saved password token
Brion Vibber [Mon, 15 Nov 2004 11:06:58 +0000 (11:06 +0000)]
Fix regression in last commits: remember the description when holding for warning
Brion Vibber [Mon, 15 Nov 2004 10:55:58 +0000 (10:55 +0000)]
s/style/class/
Brion Vibber [Mon, 15 Nov 2004 10:43:43 +0000 (10:43 +0000)]
A couple of further changes:
* Move the empty check up to the top, so the message isn't misleading
* Strip colons out of the names, as this sometimes has odd effects and is probably not so allowed on Windows.
Forgot to mention, last commit included some fragments from the patch by Benjamin Jemlich (http://bugzilla.wikipedia.org/attachment.cgi?id=46)
Brion Vibber [Mon, 15 Nov 2004 10:03:34 +0000 (10:03 +0000)]
(bug 548) A spot of refactoring, for legibility and better handling of 'warning'-causing uploads.
Such uploads are now moved to a holding area, so if the user doesn't explicitly cancel it doesn't overwrite the original file silently.
Domas Mituzas [Mon, 15 Nov 2004 09:02:24 +0000 (09:02 +0000)]
fix field names in PRIMARY KEY spec
Domas Mituzas [Mon, 15 Nov 2004 08:56:43 +0000 (08:56 +0000)]
add ugly notice asking to populate groups data, if anonymous group is not loaded
Brion Vibber [Mon, 15 Nov 2004 05:46:39 +0000 (05:46 +0000)]
Although this file should not be included in the first place, we might as well put the proper PHP tags on so that it doesn't spew PHP source code all over the HTML output when short tags are off.
Brion Vibber [Mon, 15 Nov 2004 00:59:40 +0000 (00:59 +0000)]
Fix composition bug: completed hangul syllable should not be merged with another following final jamo
Brion Vibber [Mon, 15 Nov 2004 00:58:36 +0000 (00:58 +0000)]
Add a utf-8 to hex sequence function for debugging
Brion Vibber [Mon, 15 Nov 2004 00:15:58 +0000 (00:15 +0000)]
Spiff this up a bit:
* output data returned by the eval; prints strings and numbers directly, var_dump()s arrays and objects
* if no returned data, print a line break. This makes things easier when doing 'echo' and you forget to add one yourself.
* Add some documentation comments
Antoine Musso [Sun, 14 Nov 2004 22:50:24 +0000 (22:50 +0000)]
small typo (missing '$' for a variable name)
Brion Vibber [Sun, 14 Nov 2004 21:40:44 +0000 (21:40 +0000)]
Test: feeds random strings to both pure PHP and ICU code paths looking for differences.
Brion Vibber [Sun, 14 Nov 2004 21:36:43 +0000 (21:36 +0000)]
Fix regression in ICU-mode UTF-8 verification: U+FFFF is forbidden
Antoine Musso [Sun, 14 Nov 2004 20:23:51 +0000 (20:23 +0000)]
Fix usage tip for --color
Arne Heizmann [Sun, 14 Nov 2004 16:18:34 +0000 (16:18 +0000)]
add sqcap and sqcup, and convert all tabs to spaces (leading whitespace was already spaces)
Jens Frank [Sun, 14 Nov 2004 16:18:22 +0000 (16:18 +0000)]
Fix 'Headers already sent' warnings
Arne Heizmann [Sun, 14 Nov 2004 15:56:18 +0000 (15:56 +0000)]
four more symbols: [left|right]harpoon[up|down]
Arne Heizmann [Sun, 14 Nov 2004 15:05:30 +0000 (15:05 +0000)]
Allow four more ams symbols (sqsu[p/b]set[/eq])
Brion Vibber [Sun, 14 Nov 2004 05:17:29 +0000 (05:17 +0000)]
Support using ICU to do most of the heavy lifting in cleanUp() if the extension is loaded.
Modestly faster for roman text (1-2x), 16-20x faster than the PHP looping for already normalized Russian, Japanese, and Korean text.
Brion Vibber [Sun, 14 Nov 2004 04:27:03 +0000 (04:27 +0000)]
Fix regression: surrogate half followed by extra tail bytes
Brion Vibber [Sun, 14 Nov 2004 04:07:28 +0000 (04:07 +0000)]
Fix UTF-8 validation regression: well-formed but forbidden UTF-8 sequence followed by bogus tail bytes
Brion Vibber [Sun, 14 Nov 2004 03:48:49 +0000 (03:48 +0000)]
Fix UTF-8 validation regression where a bad head byte is followed by ascii, then bad tail byte.
Brion Vibber [Sun, 14 Nov 2004 02:25:44 +0000 (02:25 +0000)]
Ignore some Mac-related files
Brion Vibber [Sun, 14 Nov 2004 02:24:44 +0000 (02:24 +0000)]
Fix UTF-8 validation bug where some cases didn't get replacement chars inserted correctly
Tim Starling [Sun, 14 Nov 2004 01:23:09 +0000 (01:23 +0000)]
IRC multiplexing, more colourful output, splitting by letter, mostly by Kate. Removing useless rc2irc.php
Brion Vibber [Sat, 13 Nov 2004 23:31:57 +0000 (23:31 +0000)]
(bug 862) Localize Finnish date and time display
Antoine Musso [Sat, 13 Nov 2004 21:29:13 +0000 (21:29 +0000)]
comment about extranamespaces values that should not be >255
see http://bugzilla.wikipedia.org/show_bug.cgi?id=719
Antoine Musso [Sat, 13 Nov 2004 21:11:31 +0000 (21:11 +0000)]
bugs I just fixed (733 705)
Antoine Musso [Sat, 13 Nov 2004 21:07:45 +0000 (21:07 +0000)]
Implement bugzilla.wikipedia.org/show_bug.cgi?id=802
Show navigation bar at bottom of Special:Contribution
Antoine Musso [Sat, 13 Nov 2004 21:03:18 +0000 (21:03 +0000)]
Single quotes
Antoine Musso [Sat, 13 Nov 2004 20:40:28 +0000 (20:40 +0000)]
Fix bug bugzilla.wikipedia.org/show_bug.cgi?id=705
Stop showing rss / atom feeds links for various special pages.
Antoine Musso [Sat, 13 Nov 2004 20:33:37 +0000 (20:33 +0000)]
new method isSyndicated() . Could be used in a child class when we dont want syndication to be available (rss / atom)
Antoine Musso [Sat, 13 Nov 2004 19:41:08 +0000 (19:41 +0000)]
Probably solve bugzilla.wikipedia.org/show_bug.cgi?id=733
Die with error message if we can't fwrite localsettings.php.
Jens Frank [Sat, 13 Nov 2004 15:05:01 +0000 (15:05 +0000)]
BUG #874 'cgi' added to wgFileBlacklist
Tim Starling [Sat, 13 Nov 2004 14:24:42 +0000 (14:24 +0000)]
Fixed bug causing interwiki links to disappear unless accompanied by an internal link
Jens Frank [Sat, 13 Nov 2004 12:04:31 +0000 (12:04 +0000)]
Moved <gallery> code to Parser, registering images in a gallery as link
Jens Frank [Sat, 13 Nov 2004 10:53:46 +0000 (10:53 +0000)]
New tag "<gallery>" to generate a table of image thumbnails
Jens Frank [Sat, 13 Nov 2004 08:40:34 +0000 (08:40 +0000)]
Fixed direction=prec/next style navigation of old revisions
Jens Frank [Sat, 13 Nov 2004 08:38:28 +0000 (08:38 +0000)]
alt-texts for the images in the enhanced RC
Antoine Musso [Sat, 13 Nov 2004 05:17:50 +0000 (05:17 +0000)]
typo: missing ')'