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
Domas Mituzas [Fri, 20 Aug 2004 12:46:40 +0000 (12:46 +0000)]
fix $mLastResult, affectedRows()
Domas Mituzas [Fri, 20 Aug 2004 11:01:36 +0000 (11:01 +0000)]
database timestamp fixup
Domas Mituzas [Fri, 20 Aug 2004 10:32:12 +0000 (10:32 +0000)]
remove bad functions:
wfLimitResult() - replaced by Database::limitResult()
QueryPage::getOrderLimit() - replaced by getOrder() + Database::limitResult()
Domas Mituzas [Thu, 19 Aug 2004 13:02:01 +0000 (13:02 +0000)]
allow getField, selectField and select to have empty conditions and table names.
Domas Mituzas [Thu, 19 Aug 2004 13:00:34 +0000 (13:00 +0000)]
add reportQueryError, halting on any error
Domas Mituzas [Thu, 19 Aug 2004 12:59:57 +0000 (12:59 +0000)]
fixup database timestamps
Arne Heizmann [Thu, 19 Aug 2004 11:44:27 +0000 (11:44 +0000)]
Add the 'templatesused' message used by JeLuf's new feature
Arne Heizmann [Thu, 19 Aug 2004 11:43:48 +0000 (11:43 +0000)]
fix indentation
Jens Frank [Thu, 19 Aug 2004 11:26:44 +0000 (11:26 +0000)]
Show list of templates used by this page at the end of the EditPage. Bugzilla#143
Brion Vibber [Thu, 19 Aug 2004 08:44:13 +0000 (08:44 +0000)]
Add some more profiling points
Tim Starling [Wed, 18 Aug 2004 14:39:17 +0000 (14:39 +0000)]
Patch to formatComment() to fix otherwise-unrecognised links with an initial colon, written by Kate-
Magnus Manske [Wed, 18 Aug 2004 08:21:35 +0000 (08:21 +0000)]
To-be XML parser
Brion Vibber [Wed, 18 Aug 2004 05:45:25 +0000 (05:45 +0000)]
Use ob_implicit_flush() rather than ob_end_flush() in install-utils.
Ending the buffering completely will kill all subsequent output when
PHP is globally configured to run through a gzip compression handler.
Also, suppress the warning in LocalSettings.php when PHP tells us we
can't run the gzip filter twice.
Brion Vibber [Wed, 18 Aug 2004 00:04:06 +0000 (00:04 +0000)]
The last checkin changed 'copyrightwarning' in a way that broke if the
wiki wasn't configured to provide copyright metadata, and requires editing
or rebuilding the message if the configuration is changed.
Now uses the value in existence at runtime so it can be reconfigured more
easily, and adds a 'copyrightwarning2' message which changes the wording
a bit to be used when no copyright metadata is provided.
This change should be more upwards-compatible. Also, changed 'copyrightwarning'
to be wikitext instead of raw HTML; this shouldn't break any of the built-in
texts but might requires adjustment to customized versions.
Jens Frank [Tue, 17 Aug 2004 21:07:14 +0000 (21:07 +0000)]
On image pages, limit image width to $wgMaxImageWidth.
If $wgUseImageResize is set, the image will be resized to fit this limit.
The resized image links to the big image.
Default for $wgMaxImageWidth is 800 pixels. Set to really big values (like
9999999) to disable.
Arne Heizmann [Tue, 17 Aug 2004 17:35:50 +0000 (17:35 +0000)]
use $wgRightsText in copyrightwarning
Guillaume Blanchard [Tue, 17 Aug 2004 15:42:42 +0000 (15:42 +0000)]
*fix bug in non-breaking space regexp
*add non-breaking code for French numbers
*set MAX_INCLUDE_REPEAT to 100 (I'll remove it when I'll update the per page size max)
Brion Vibber [Mon, 16 Aug 2004 23:57:25 +0000 (23:57 +0000)]
Do final link replacement with preg_replace_callback instead of str_replace on giant arrays.
Speeds up this part on a Village Pump copy by a factor of 20 over the
previous explode() hack and by a factor of 200 over the original method.
Magnus Manske [Mon, 16 Aug 2004 21:39:56 +0000 (21:39 +0000)]
Dirty hack for time-consuming str_replace
Antoine Musso [Mon, 16 Aug 2004 20:14:35 +0000 (20:14 +0000)]
double to single quotes.
Antoine Musso [Mon, 16 Aug 2004 20:01:21 +0000 (20:01 +0000)]
* some comments (using # instead of /* */ )
* function foobar () { shema
Brion Vibber [Mon, 16 Aug 2004 19:06:03 +0000 (19:06 +0000)]
* Add more profiling granularity to replaceLinkHolders
* Split a couple "?>" instances in string literals -- these hose some syntax highlighters
Antoine Musso [Mon, 16 Aug 2004 15:29:17 +0000 (15:29 +0000)]
more double to single quotes
Antoine Musso [Mon, 16 Aug 2004 15:23:46 +0000 (15:23 +0000)]
Comments, double to single quotes, foobar () { shema.
Tim Starling [Mon, 16 Aug 2004 13:25:09 +0000 (13:25 +0000)]
More informative Special:Export text copied from en
Domas Mituzas [Mon, 16 Aug 2004 11:47:56 +0000 (11:47 +0000)]
Enter 10x more efficient stripForSearch code.
This method returns lowercased string (same
as in Language). Other stripForSearch'es should
be reviewed and later double efforts to lowercase
text in SearchUpdate, SearchEngine and elswhere
removed.
Brion Vibber [Mon, 16 Aug 2004 09:50:02 +0000 (09:50 +0000)]
Start on 1.4 release notes, so we don't forget what we did.
Domas Mituzas [Mon, 16 Aug 2004 09:12:22 +0000 (09:12 +0000)]
Comments:Fix stale comments, this file isn't just a wrapper, also add a note on mbstring
Domas Mituzas [Mon, 16 Aug 2004 08:35:27 +0000 (08:35 +0000)]
Commit in resource efficient lcfirst and ucfirst
Uses PHP mbstring feature, in case it is compiled in.
In case of language-dependant failures,
those should be solved in Language classes.
Jens Frank [Mon, 16 Aug 2004 04:42:48 +0000 (04:42 +0000)]
Don't follow redirects pointing to Special:Userlogout
Brion Vibber [Mon, 16 Aug 2004 01:59:53 +0000 (01:59 +0000)]
Validation tweaks:
* Code style consistency
* Use $wgRequest (comments now correctly encoded for eo)
* When disabled, show 'nosuchaction' and 'nosuchspecialpage' errors if triggered
Antoine Musso [Sun, 15 Aug 2004 23:48:39 +0000 (23:48 +0000)]
Fix sourceforge bug #811928:
Removed several occurences of "\r" which break headers in Outlook at least.
Tested ok on mozilla-thunderbird and The-Bat
Antoine Musso [Sun, 15 Aug 2004 23:25:52 +0000 (23:25 +0000)]
some more comments and moved parameters in their sections
Arne Heizmann [Sun, 15 Aug 2004 23:08:02 +0000 (23:08 +0000)]
don't die; redirect
Jens Frank [Sun, 15 Aug 2004 20:20:41 +0000 (20:20 +0000)]
prevent crashing on [[{{FNORD}}]]. Doesn't return something beautiful, though.
Jens Frank [Sun, 15 Aug 2004 20:00:14 +0000 (20:00 +0000)]
Bugfix: When cookies are disabled, don't show login screen twice
Antoine Musso [Sun, 15 Aug 2004 19:54:15 +0000 (19:54 +0000)]
Migrate doubleredirect and brokenredirect subpages from SpecialMaintenance.php to their own SpecialXX.php scripts. TODO: do not die when a user access the old page but relocate instead
Antoine Musso [Sun, 15 Aug 2004 19:22:40 +0000 (19:22 +0000)]
New getPageHeader() method. Allow to add some text before outputting the results.
Antoine Musso [Sun, 15 Aug 2004 19:12:17 +0000 (19:12 +0000)]
trivial double to single quotes translation
Antoine Musso [Sun, 15 Aug 2004 18:28:02 +0000 (18:28 +0000)]
Code standardization:
* foobar () { instead of foobar () \n {
* some comments
* double to single quotes
* use constant NS_SPECIAL instead of -1
Tim Starling [Sun, 15 Aug 2004 15:01:33 +0000 (15:01 +0000)]
Adding numberheadings to rendering hash, related inconsistency reported on #wikipedia
Jens Frank [Sun, 15 Aug 2004 13:49:14 +0000 (13:49 +0000)]
Move check for wgUseGeoMode to where the function is called, avoids copying the text around
Brion Vibber [Sun, 15 Aug 2004 11:40:59 +0000 (11:40 +0000)]
'deleteimgcompletely' => 'Delete all revisions',
Somebody forgot to add this...
Brion Vibber [Sun, 15 Aug 2004 09:54:28 +0000 (09:54 +0000)]
Fix notice; use isset() to test if things are set
Brion Vibber [Sun, 15 Aug 2004 09:47:57 +0000 (09:47 +0000)]
Remove obsolete searchhelppage link from dberrortext.
Search queries should never cause SQL errors! The new mysql4 code at least is fairly robust.
Brion Vibber [Sun, 15 Aug 2004 08:59:31 +0000 (08:59 +0000)]
Folding searchhelppage and searchingwikipedia into normal wikitext in searchresulttext.
Cleaned up some hard-coded 'Wikipedia' values and old-style $wgSitename/$wgMetaNamespace, but there are still hard-coded values with localized Wikipedia spellings that my quick script didn't catch. These should be edited manually...
Brion Vibber [Sun, 15 Aug 2004 08:23:19 +0000 (08:23 +0000)]
More code cleanup on SearchEngine.
Renamed member vars to fooBar style, use $this->rawText more consistently.
Separated matching parts of goResult() out.
More redundant bits purged.
Switching some messages to wikitext.
Death to <font> tags!
Tim Starling [Sun, 15 Aug 2004 07:43:37 +0000 (07:43 +0000)]
fix of bug added in 1.37
Tim Starling [Sun, 15 Aug 2004 07:24:31 +0000 (07:24 +0000)]
Added rc_id and rc_patrolled updaters
Tim Starling [Sun, 15 Aug 2004 07:23:39 +0000 (07:23 +0000)]
Added FOR UPDATE mode to Block.php, to fix memcached concurrency problem in BlockCache.php. This should fix the regular reports from en of blocks not taking effect.
Brion Vibber [Sun, 15 Aug 2004 07:15:22 +0000 (07:15 +0000)]
Starting code cleanup. Beginning to separate database logic from display output, removing some duplicate bits, starting to decouple things...
Brion Vibber [Sun, 15 Aug 2004 05:05:56 +0000 (05:05 +0000)]
Show the search terms as given instead of the filtered terms in the subtitle.
Part of the fix for Bug 54: go-search for non-existing page in a namespace returns broken new-edit URL
http://bugzilla.wikipedia.org/show_bug.cgi?id=54
Brion Vibber [Sun, 15 Aug 2004 04:38:35 +0000 (04:38 +0000)]
Use original instead of filtered search request for the optional new page edit link in nogomatch (de, etc)
Fix for Bug 54: go-search for non-existing page in a namespace returns broken new-edit URL
http://bugzilla.wikipedia.org/show_bug.cgi?id=54
Arne Heizmann [Sun, 15 Aug 2004 02:15:48 +0000 (02:15 +0000)]
In $wgNamespaceNamesDe: Fix indentation
In $wgSkinNamesDe: Fix indentation, and translate skin names to German
Everywhere else, remove trailing white space. Not that much this time :-)
Brion Vibber [Sun, 15 Aug 2004 01:53:25 +0000 (01:53 +0000)]
* Translate 'Chick' skin name ('Kokido')
* Fill in a couple missing bits from prefs
Brion Vibber [Sat, 14 Aug 2004 22:51:28 +0000 (22:51 +0000)]
Disable $wgUseGzip by default since it's wildly incompatible with
default output buffering. May further streamline this later.
Arne Heizmann [Sat, 14 Aug 2004 22:42:46 +0000 (22:42 +0000)]
New files for new skin 'Chick'.
http://bugzilla.wikipedia.org/show_bug.cgi?id=49
Arne Heizmann [Sat, 14 Aug 2004 22:38:46 +0000 (22:38 +0000)]
New PHPtal-based skin 'Chick'. Designed for PDAs and other low-resolution devices.
See non-whitespace-changing patch at http://bugzilla.wikipedia.org/show_bug.cgi?id=49
Brion Vibber [Sat, 14 Aug 2004 22:32:54 +0000 (22:32 +0000)]
Clean up magic, messages to remove warnings and notices.
Remove some redundant inherited funcs from LanguageIs.
Arne Heizmann [Sat, 14 Aug 2004 22:30:10 +0000 (22:30 +0000)]
use tabs for indentation, and probably some trailing whitespace has been removed by my
editor. I apologise for these triviality commits lately; I'll be more productive soon...
Arne Heizmann [Sat, 14 Aug 2004 22:27:10 +0000 (22:27 +0000)]
"escaped" can mean "URL-escaped" or "HTML-escaped".
Arne Heizmann [Sat, 14 Aug 2004 22:21:30 +0000 (22:21 +0000)]
English
Brion Vibber [Sat, 14 Aug 2004 22:15:49 +0000 (22:15 +0000)]
Remove filthy, dirty, Microsoft line endings from the file. yuck yuck yuck!
Arne Heizmann [Sat, 14 Aug 2004 20:33:01 +0000 (20:33 +0000)]
# Please don't move this line to includes/Defines.php. This line essentially defines
# a valid entry point. If you put it in includes/Defines.php, then any script that includes
# it becomes an entry point, thereby defeating its purpose.
Antoine Musso [Sat, 14 Aug 2004 20:28:05 +0000 (20:28 +0000)]
PAGENAMEE / Article count on move
Brion Vibber [Sat, 14 Aug 2004 20:18:23 +0000 (20:18 +0000)]
Copy release notes & history from 1.3.
Antoine Musso [Sat, 14 Aug 2004 20:09:47 +0000 (20:09 +0000)]
Fix sourceforge bug #850012 : Page move doesn't update article count
It works on my local wiki unfortunatly I have neither memcached nor
squid so the code might need some tweaking.
Antoine Musso [Sat, 14 Aug 2004 19:52:18 +0000 (19:52 +0000)]
Code standardization:
* if($foo == 1) instead of 1 == $foo
* double to single quote translations