Evan Prodromou [Sun, 28 Nov 2004 00:51:43 +0000 (00:51 +0000)]
Per brion's suggestion, changed <? to <?php in Syslog, and change
functions to strings in Syslog and hooks.doc examples.
Evan Prodromou [Sun, 28 Nov 2004 00:20:37 +0000 (00:20 +0000)]
Added hook events for article protection. Added sample code to Syslog
extensions, and documented in hooks.doc.
Evan Prodromou [Sat, 27 Nov 2004 23:57:55 +0000 (23:57 +0000)]
Added event-hooking code for blocking users and IPs. Added a handler
to the Syslog extension for blocked users to test this event. Added
documentation for the event to hooks.doc.
Evan Prodromou [Sat, 27 Nov 2004 23:10:05 +0000 (23:10 +0000)]
Add an extension for logging MediaWiki events to the system logger
(syslog). Although intended to be useful, it's more of a testbed for
event hooks than anything else. For a first pass, started logging user
login and user logout events. Had to add hooks-running code to the
login and logout modules, but that's kind of the point. Documented the
three events added in hooks.doc.
Evan Prodromou [Sat, 27 Nov 2004 21:43:06 +0000 (21:43 +0000)]
Add a system of hooks to allow third-party code to run before, after, or
instead of -- MediaWiki code for particular events (article rollback,
user ban, etc.). Framework is in place; hooks are not yet in place
in the mainline code.
Brion Vibber [Sat, 27 Nov 2004 13:40:58 +0000 (13:40 +0000)]
Have the skin cache the highlightbroken and hover options to avoid asking the user object on every link format. This can save a chunk of time on pages with obscenely many links (~50ms on my test box with [[List of Royal Navy ship names]])
Brion Vibber [Sat, 27 Nov 2004 13:25:39 +0000 (13:25 +0000)]
Bold changed words in diff output, per recommendation in bug 777
Brion Vibber [Sat, 27 Nov 2004 12:21:16 +0000 (12:21 +0000)]
Light optimization on Skin::makeLinkObj(). Shaves about 40ms off of [[List of Royal Navy ship names]] on my test rig (over 2500 links!)
Brion Vibber [Sat, 27 Nov 2004 09:03:16 +0000 (09:03 +0000)]
Slight adjustment to self-interwiki fix: disallow empty title links
Brion Vibber [Sat, 27 Nov 2004 08:31:21 +0000 (08:31 +0000)]
Submit local-interwiki links to namespace splitting, and disallow additional interwikis on them (as this actually creates unreachable local links).
Some minor optimizations. Removed :image check from newFromText as the parser deals with this.
Brion Vibber [Sat, 27 Nov 2004 06:38:41 +0000 (06:38 +0000)]
Adjust memory usage stats for overhead as well. Fixed accidental doubling of per-call stats on some calls
Brion Vibber [Sat, 27 Nov 2004 05:53:32 +0000 (05:53 +0000)]
Compensate for overhead of profiled subcalls in each function, to give less distorted figures.
Brion Vibber [Sat, 27 Nov 2004 02:45:36 +0000 (02:45 +0000)]
Reduce total profiling overhead by about 6%, and internal overhead by about 40%
Tim Starling [Sat, 27 Nov 2004 00:09:01 +0000 (00:09 +0000)]
Correct name for Nauruan according to en.wikipedia.org/w/wiki.phtml?title=User_talk:Tim_Starling&diff=
7885309&oldid=
7875798
Brion Vibber [Fri, 26 Nov 2004 12:10:24 +0000 (12:10 +0000)]
Tell regexp parser to use extra analysis on external link regexp;
this saves about 10ms on [[Zuiderzee Works]] on my test rig.
Brion Vibber [Fri, 26 Nov 2004 11:47:09 +0000 (11:47 +0000)]
Cache title lookups in Title::newFromText(). In pages with many duplicate links this can save time normalizing and parsing title text.
Brion Vibber [Fri, 26 Nov 2004 10:49:46 +0000 (10:49 +0000)]
Tell regexp engine to do extra analysis on doBlockLevels() paragraph-level
HTML checking. This speeds up this part of the operation from about 30ms
to about 7ms in Zuiderzee_Works on my test rig.
Brion Vibber [Thu, 25 Nov 2004 23:49:52 +0000 (23:49 +0000)]
Fix indentation, add profiling points
Brion Vibber [Thu, 25 Nov 2004 22:46:41 +0000 (22:46 +0000)]
Mark the default skin in the preferences list. People get lost, and 'MonoBook' or whatever is not exactly obvious.
Brion Vibber [Thu, 25 Nov 2004 22:42:33 +0000 (22:42 +0000)]
Suppress hidden files from skin list; some backup and magic-filesystem-stuff systems put junk in there.
Brion Vibber [Thu, 25 Nov 2004 22:02:30 +0000 (22:02 +0000)]
(bug 934) List each category on a page only once.
Dan Keshet's patch (http://bugzilla.wikipedia.org/attachment.cgi?id=134&action=view) plus an added version check on parser cache objects, to automatically discard cached objects using the incompatible older format.
Domas Mituzas [Thu, 25 Nov 2004 14:20:35 +0000 (14:20 +0000)]
PostgreSQL/Tsearch2 full-text-index initial support
Brion Vibber [Thu, 25 Nov 2004 13:52:56 +0000 (13:52 +0000)]
Move edit toolbar generation code from the Skin to the EditPage user interface, where it belongs.
Brion Vibber [Thu, 25 Nov 2004 13:47:17 +0000 (13:47 +0000)]
Split recentchanges and image history list formatters from Skin, where they never really belonged. No skin overrides these things, and they just waste server time loading and parsing the code for every page hit where they're not needed.
Brion Vibber [Thu, 25 Nov 2004 13:41:33 +0000 (13:41 +0000)]
Whoops
Brion Vibber [Thu, 25 Nov 2004 13:06:40 +0000 (13:06 +0000)]
Avoid a lot of wasted time parsing and reparsing titles and fetching and refetching messages on every line of potentially hundreds or thousands shown.
Brion Vibber [Thu, 25 Nov 2004 12:34:48 +0000 (12:34 +0000)]
* Avoid a lot of needless reparsing of titles coming out of the database
* Stash message lookups used on every row (potentially used hundreds or thousands of times during the script run)
* Fix undefined variable notice by removing mysterious unused line of code
Brion Vibber [Thu, 25 Nov 2004 12:18:46 +0000 (12:18 +0000)]
* Force index selection, MySQL may pick cur_namespace when using the new namespace selector, which is bad bad mojo on a large site
* Fix missing </div> tag which broke layout
Brion Vibber [Thu, 25 Nov 2004 11:54:07 +0000 (11:54 +0000)]
Profiling points. Avoid reparsing of titles which came out of the database. Snip off extract, no point in wasteful extra string copying (snort)
Brion Vibber [Thu, 25 Nov 2004 06:20:01 +0000 (06:20 +0000)]
Add site-wide options to disable all e-mail functions or only user-to-user email.
Brion Vibber [Thu, 25 Nov 2004 06:19:21 +0000 (06:19 +0000)]
Profile point
Brion Vibber [Thu, 25 Nov 2004 06:04:16 +0000 (06:04 +0000)]
Separate the HTML guts of the user login form into a template to keep the code more or less legibile.
Brion Vibber [Thu, 25 Nov 2004 06:02:17 +0000 (06:02 +0000)]
Remove redundant operations
Brion Vibber [Thu, 25 Nov 2004 05:31:49 +0000 (05:31 +0000)]
Rearrange the new template system a bit to make things less verbose in most cases, and easier to reuse...
Zheng Zhu [Thu, 25 Nov 2004 03:17:05 +0000 (03:17 +0000)]
convert to simplified Chinese before for searching and indexing.
Zheng Zhu [Thu, 25 Nov 2004 03:04:50 +0000 (03:04 +0000)]
Really show the desired number of lines per hit.
Brion Vibber [Wed, 24 Nov 2004 22:40:38 +0000 (22:40 +0000)]
Convert to UTF-8; fix for short open tags off; remove some redundant and unused bits.
Brion Vibber [Wed, 24 Nov 2004 22:31:48 +0000 (22:31 +0000)]
Avoid 'undefined index' notices
Andre Engels [Wed, 24 Nov 2004 14:05:04 +0000 (14:05 +0000)]
Adapted version - this is for li:, not nl:, also syntax updated at several places
Shane King [Wed, 24 Nov 2004 12:55:48 +0000 (12:55 +0000)]
Added the ability to protect a page from moves but not from edits. See
bug #868.
Andre Engels [Wed, 24 Nov 2004 12:53:15 +0000 (12:53 +0000)]
Language file for Limburgian, created by Dutch/Limburgian user Guaka
Shane King [Wed, 24 Nov 2004 12:41:45 +0000 (12:41 +0000)]
Allow filtering of Special:Contributions by namespace. Originally intended
so as to allow filtering of user image uploads, see bug #905.
Brion Vibber [Wed, 24 Nov 2004 12:02:22 +0000 (12:02 +0000)]
Recentchanges optimization: avoid a lot of senseless parsing of link text coming out of the database, stash message lookups done in every line, and don't do two date formats when we only care about one.
Brion Vibber [Wed, 24 Nov 2004 11:43:42 +0000 (11:43 +0000)]
Remove some redundant checks; if these ever failed, PHP would have first thrown an error about not having required parameters to the function.
Brion Vibber [Wed, 24 Nov 2004 10:27:49 +0000 (10:27 +0000)]
Have Title::makeTitle() do the space to underscore replacement so it can be used on user_text fields directly without fuss.
Brion Vibber [Wed, 24 Nov 2004 10:26:38 +0000 (10:26 +0000)]
Ensure ObjectCache.php is included (by default it's not if the main config has memcached turned on)
Brion Vibber [Wed, 24 Nov 2004 09:57:03 +0000 (09:57 +0000)]
Add profiling points, and disable output instead of abrupt exit (so things like the profiling actually work!)
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