lhc/web/wiklou.git
18 years agolocal cdb-based interwiki cache
Domas Mituzas [Sat, 21 Jan 2006 16:23:45 +0000 (16:23 +0000)]
local cdb-based interwiki cache

18 years agoWhen reading from meta's interwiki map, *.wikimedia.org should be set as local (e...
Rowan Collins [Sat, 21 Jan 2006 13:25:41 +0000 (13:25 +0000)]
When reading from meta's interwiki map, *.wikimedia.org should be set as local (e.g. commons).

18 years agosomewhatdirtyhack: build constant slightly compact database of interwiki prefixes
Domas Mituzas [Sat, 21 Jan 2006 13:05:43 +0000 (13:05 +0000)]
somewhatdirtyhack: build constant slightly compact database of interwiki prefixes

18 years agoWhen reading from meta's interwiki map, *.wikimedia.org should be set as local (e...
Rowan Collins [Sat, 21 Jan 2006 13:04:57 +0000 (13:04 +0000)]
When reading from meta's interwiki map, *.wikimedia.org should be set as local (e.g. commons).

18 years ago* ctype tests
Ævar Arnfjörð Bjarmason [Fri, 20 Jan 2006 22:52:21 +0000 (22:52 +0000)]
* ctype tests

18 years ago* This requires ../includes/Hooks.php
Ævar Arnfjörð Bjarmason [Fri, 20 Jan 2006 22:51:10 +0000 (22:51 +0000)]
* This requires ../includes/Hooks.php

18 years ago* set_include_path() in case of a custom PHPTest install
Ævar Arnfjörð Bjarmason [Fri, 20 Jan 2006 22:50:47 +0000 (22:50 +0000)]
* set_include_path() in case of a custom PHPTest install
* Run ctype tests

18 years ago* Added options to install phpunit for the lazy
Ævar Arnfjörð Bjarmason [Fri, 20 Jan 2006 22:49:07 +0000 (22:49 +0000)]
* Added options to install phpunit for the lazy

18 years agoDefault main page content improved per bug 4690
Rob Church [Fri, 20 Jan 2006 21:52:52 +0000 (21:52 +0000)]
Default main page content improved per bug 4690

18 years ago* (bug 3603) headscripts variable not hooked up to MonoBook skin
Rob Church [Fri, 20 Jan 2006 19:01:54 +0000 (19:01 +0000)]
* (bug 3603) headscripts variable not hooked up to MonoBook skin

18 years ago* (bug 4679) Work around buggy basename() function in PHP5, which breaks
Brion Vibber [Fri, 20 Jan 2006 09:03:16 +0000 (09:03 +0000)]
* (bug 4679) Work around buggy basename() function in PHP5, which breaks
  uploads of files starting with multibyte characters on Linux.
  wfBaseName() doesn't suffer this bug, and understands backslash on
  both Unix and Windows.

18 years ago* Small changes to tabs in Monobook skin c/o Chris Ware
Rob Church [Thu, 19 Jan 2006 23:24:20 +0000 (23:24 +0000)]
* Small changes to tabs in Monobook skin c/o Chris Ware

18 years agodateformat in Chuvash langfile
Alexander Sigachov [Thu, 19 Jan 2006 19:17:15 +0000 (19:17 +0000)]
dateformat in Chuvash langfile

18 years agoMake Revision::getPrevious() and Revision::getNext() return null if there are no...
Tim Starling [Thu, 19 Jan 2006 17:12:37 +0000 (17:12 +0000)]
Make Revision::getPrevious() and Revision::getNext() return null if there are no more revisions to fetch in that direction. They previously just started from the current revision again.

18 years agogive the correct error message when an article doesn't exist
Tim Starling [Thu, 19 Jan 2006 17:10:57 +0000 (17:10 +0000)]
give the correct error message when an article doesn't exist

18 years agosome changes
Tim Starling [Thu, 19 Jan 2006 09:06:51 +0000 (09:06 +0000)]
some changes

18 years agouse wfRegexReplacement() which was added a little while ago to cover this silly regex...
Brion Vibber [Thu, 19 Jan 2006 06:29:41 +0000 (06:29 +0000)]
use wfRegexReplacement() which was added a little while ago to cover this silly regex case

18 years agocheck if Revision::getText() returned without an error
Tim Starling [Thu, 19 Jan 2006 04:52:18 +0000 (04:52 +0000)]
check if Revision::getText() returned without an error

18 years agoDon't try to inflate or unserialize an error flag
Tim Starling [Thu, 19 Jan 2006 03:59:20 +0000 (03:59 +0000)]
Don't try to inflate or unserialize an error flag

18 years agoTry the master if a blob is not found in the slave
Tim Starling [Thu, 19 Jan 2006 03:55:03 +0000 (03:55 +0000)]
Try the master if a blob is not found in the slave

18 years ago* Adding link to the relevant mailing list post in the comment for deps.php stuff
Ævar Arnfjörð Bjarmason [Wed, 18 Jan 2006 17:01:13 +0000 (17:01 +0000)]
* Adding link to the relevant mailing list post in the comment for deps.php stuff

18 years agoRemove gratuitous extract( ) from getSQL -> might as well use the direct function
Rob Church [Wed, 18 Jan 2006 16:17:15 +0000 (16:17 +0000)]
Remove gratuitous extract( ) from getSQL -> might as well use the direct function

18 years agoBug 4429: "Protect" tab in page header
Rob Church [Wed, 18 Jan 2006 03:24:21 +0000 (03:24 +0000)]
Bug 4429: "Protect" tab in page header

18 years agoFix redlinks where targets don't exist
Rob Church [Wed, 18 Jan 2006 02:19:44 +0000 (02:19 +0000)]
Fix redlinks where targets don't exist

18 years agowas missing Zh_cn dep
Brion Vibber [Wed, 18 Jan 2006 01:57:15 +0000 (01:57 +0000)]
was missing Zh_cn dep

18 years ago* Comment userFunctions.inc
Rob Church [Wed, 18 Jan 2006 01:29:07 +0000 (01:29 +0000)]
* Comment userFunctions.inc
* Replace uses of raw queries with appropriate database wrapper functions
* Correct some interface inconsistencies in removeUnusedAccounts.php (was referring to deleting users even when no editless users were found)

18 years agoRevert to un-borked version, sorry Brion
Rob Church [Wed, 18 Jan 2006 00:04:30 +0000 (00:04 +0000)]
Revert to un-borked version, sorry Brion

18 years ago* Add ".deps.php" include-file preloaders for some dynamically-loaded
Brion Vibber [Tue, 17 Jan 2006 23:43:15 +0000 (23:43 +0000)]
* Add ".deps.php" include-file preloaders for some dynamically-loaded
  language and skin classes. Should help with the broken base-class
  problem under PHP 5 with APC as opcode cache. See details:
  http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html

18 years agoRespect database prefix in dumpHTML.inc
Rob Church [Tue, 17 Jan 2006 21:57:14 +0000 (21:57 +0000)]
Respect database prefix in dumpHTML.inc

18 years agoFix false blue links on Special:Ipblocklist
Rob Church [Tue, 17 Jan 2006 21:53:37 +0000 (21:53 +0000)]
Fix false blue links on Special:Ipblocklist

18 years agoFix some s/'/"/g related issues
Antoine Musso [Tue, 17 Jan 2006 20:21:31 +0000 (20:21 +0000)]
Fix some s/'/"/g related issues

18 years agoFix crash when using 'tasks' extension
Antoine Musso [Tue, 17 Jan 2006 20:14:20 +0000 (20:14 +0000)]
Fix crash when using 'tasks' extension

18 years ago'see sections below for details' - spundun was confused
Antoine Musso [Tue, 17 Jan 2006 19:54:04 +0000 (19:54 +0000)]
'see sections below for details' - spundun was confused

18 years agoremoved misfeature (ignore writes while in read only mode): more trouble than it...
Tim Starling [Tue, 17 Jan 2006 16:16:43 +0000 (16:16 +0000)]
removed misfeature (ignore writes while in read only mode):  more trouble than it's worth

18 years agoRemoving leecruft. No, you sure as hell couldn't defer it.
Tim Starling [Tue, 17 Jan 2006 13:24:00 +0000 (13:24 +0000)]
Removing leecruft. No, you sure as hell couldn't defer it.

18 years agooops, bug in untested error branch
Tim Starling [Tue, 17 Jan 2006 12:14:27 +0000 (12:14 +0000)]
oops, bug in untested error branch

18 years agoMoved the bulk of dbsource() to Database.php. Added support for updating wikis with...
Tim Starling [Tue, 17 Jan 2006 11:48:18 +0000 (11:48 +0000)]
Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported)

18 years ago--conf option for specifying a different LocalSettings.php. This allows multiple...
Tim Starling [Tue, 17 Jan 2006 09:01:26 +0000 (09:01 +0000)]
--conf option for specifying a different LocalSettings.php. This allows multiple wikis to run off a single script directory, without the benefit of wikimedia-only magic.

18 years agoFixed incorrect query() parameters, left over from the brief period of time when...
Tim Starling [Tue, 17 Jan 2006 08:40:16 +0000 (08:40 +0000)]
Fixed incorrect query() parameters, left over from the brief period of time when wfQuery took a DB index as a parameter

18 years ago$value never initialized, I presume $val is meant
Erik Moeller [Tue, 17 Jan 2006 00:51:09 +0000 (00:51 +0000)]
$value never initialized, I presume $val is meant

18 years ago* use braces in if else if if if stuff (safer read).
Antoine Musso [Mon, 16 Jan 2006 22:38:30 +0000 (22:38 +0000)]
* use braces in if else if if if stuff (safer read).
* removing useless call ($sk never used in function)

18 years agoupdate from bug i fixed in 1.5 & HEAD but never notified in HEAD release notes
Antoine Musso [Mon, 16 Jan 2006 21:47:17 +0000 (21:47 +0000)]
update from bug i fixed in 1.5 & HEAD but never notified in HEAD release notes

18 years agowhy was this line removed? it was added during 1.6 cycle
Brion Vibber [Mon, 16 Jan 2006 20:48:43 +0000 (20:48 +0000)]
why was this line removed? it was added during 1.6 cycle

18 years agoCouple more useful functions for later scripts
Rob Church [Mon, 16 Jan 2006 19:18:29 +0000 (19:18 +0000)]
Couple more useful functions for later scripts

18 years ago* Some code cleanup
Rob Church [Mon, 16 Jan 2006 18:55:45 +0000 (18:55 +0000)]
* Some code cleanup
* Deprecate OutputPage::developerRequired()

18 years ago-bug 1122: ported to 1.5
Antoine Musso [Mon, 16 Jan 2006 18:38:00 +0000 (18:38 +0000)]
-bug 1122: ported to 1.5

18 years agoFix #1122: "older revision" link displayed when viewing first revision of an article
Antoine Musso [Mon, 16 Jan 2006 18:34:11 +0000 (18:34 +0000)]
Fix #1122: "older revision" link displayed when viewing first revision of an article

18 years agoMake user functions more generalised so other maintenance scripts can use them
Rob Church [Mon, 16 Jan 2006 13:57:29 +0000 (13:57 +0000)]
Make user functions more generalised so other maintenance scripts can use them

18 years agoFix stupid and irritating missing space I keep seeing but forget to correct
Rob Church [Mon, 16 Jan 2006 13:51:26 +0000 (13:51 +0000)]
Fix stupid and irritating missing space I keep seeing but forget to correct

18 years agoDocument previous fix
Rob Church [Mon, 16 Jan 2006 13:11:32 +0000 (13:11 +0000)]
Document previous fix

18 years agoFix problem reported on mailing list where re-initialising stats didn't work (can...
Rob Church [Mon, 16 Jan 2006 13:03:26 +0000 (13:03 +0000)]
Fix problem reported on mailing list where re-initialising stats didn't work (can't insert duplicate rows with the same id field)

18 years ago* Spit the generated LocalSettings code out during the installer as an aid
Brion Vibber [Mon, 16 Jan 2006 10:16:06 +0000 (10:16 +0000)]
* Spit the generated LocalSettings code out during the installer as an aid
  to debugging issues. (Keep this?)
* Use __FILE__ to form path in new LocalSettings.php, so it stays accurate
  when the directory is relocated for typical usage.
* Auto-update $wgCacheEpoch when LocalSettings.php changes on new installs.
  For typical usage this will be a light burden and should reduce confusion
  when the configuration is edited.
* Fix $wgCacheEpoch's effect on client-side caching.

18 years ago* Typo: the => then
Ævar Arnfjörð Bjarmason [Mon, 16 Jan 2006 06:53:48 +0000 (06:53 +0000)]
* Typo: the => then

18 years ago* Don't show a stray "* Hooks" if none are defined
Ævar Arnfjörð Bjarmason [Mon, 16 Jan 2006 06:11:06 +0000 (06:11 +0000)]
* Don't show a stray "* Hooks" if none are defined

18 years ago* Minor cosmetic fixes to installer
Rob Church [Mon, 16 Jan 2006 03:35:28 +0000 (03:35 +0000)]
* Minor cosmetic fixes to installer
* Make Block::delete() return something, to be used in later alterations to the un/blocking interfaces

18 years agoFix disappearing autoblocker numbers
Rob Church [Mon, 16 Jan 2006 03:16:25 +0000 (03:16 +0000)]
Fix disappearing autoblocker numbers
WHY IN GOD'S NAME IS Block::mID NOT TREATED LIKE Block::mId?

18 years agoFix yet another stupid mistake
Rob Church [Mon, 16 Jan 2006 02:19:08 +0000 (02:19 +0000)]
Fix yet another stupid mistake
/me hands everyone a cluestick and prepares for the bruises

18 years agoUrk! ; => ,
Rob Church [Mon, 16 Jan 2006 02:15:53 +0000 (02:15 +0000)]
Urk! ; => ,

18 years agoFix misplaced comma
Rob Church [Mon, 16 Jan 2006 02:15:01 +0000 (02:15 +0000)]
Fix misplaced comma

18 years ago* Add cache-safe alternate sitenotice for anonymous users. (MediaWiki:Anonnotice
Rob Church [Mon, 16 Jan 2006 01:58:57 +0000 (01:58 +0000)]
* Add cache-safe alternate sitenotice for anonymous users. (MediaWiki:Anonnotice

This is displayed instead of the regular sitenotice, if it exists. If not, the regular sitenotice shows. If that doesn't exist, the value of $wgSiteNotice is used, and if that's null, then nothing is shown.

18 years agoRevert per discussion w/ Brion
Rob Church [Mon, 16 Jan 2006 01:19:12 +0000 (01:19 +0000)]
Revert per discussion w/ Brion

18 years agoBug 2757: 'Page move completed' screen should contain link to original page with...
Rob Church [Mon, 16 Jan 2006 00:13:01 +0000 (00:13 +0000)]
Bug 2757: 'Page move completed' screen should contain link to original page with &redirect=no

18 years agosome basic quotes
Antoine Musso [Sun, 15 Jan 2006 23:14:48 +0000 (23:14 +0000)]
some basic quotes

18 years ago* additional comments
Antoine Musso [Sun, 15 Jan 2006 23:12:27 +0000 (23:12 +0000)]
* additional comments
* line wrap at 80 columns

18 years agofunny quotes
Antoine Musso [Sun, 15 Jan 2006 23:07:19 +0000 (23:07 +0000)]
funny quotes

18 years agoFix fucked up unblock links in Special:Ipblocklist
Rob Church [Sun, 15 Jan 2006 22:57:08 +0000 (22:57 +0000)]
Fix fucked up unblock links in Special:Ipblocklist

18 years agoHTML protection on message use
Brion Vibber [Sun, 15 Jan 2006 20:34:25 +0000 (20:34 +0000)]
HTML protection on message use

18 years agoAdd a link to history. Usefull for vandalism tracking & speedy deletion
Antoine Musso [Sun, 15 Jan 2006 14:06:29 +0000 (14:06 +0000)]
Add a link to history. Usefull for vandalism tracking & speedy deletion

18 years agonever used call
Antoine Musso [Sun, 15 Jan 2006 14:00:22 +0000 (14:00 +0000)]
never used call

18 years ago* (bug 3990) Use existing session name if session.auto_start is on
Brion Vibber [Sun, 15 Jan 2006 08:05:28 +0000 (08:05 +0000)]
* (bug 3990) Use existing session name if session.auto_start is on
  Fixes checks for open sessions, such as the cookie warning on login.
  Patch by Zbigniew Braniecki.

18 years ago* (bug 4482) Include move comment on the null edit as well as the redirect
Brion Vibber [Sun, 15 Jan 2006 07:04:28 +0000 (07:04 +0000)]
* (bug 4482) Include move comment on the null edit as well as the redirect

18 years ago* Fixed regression in last commit: If we don't check for existance we'll get
Ævar Arnfjörð Bjarmason [Sun, 15 Jan 2006 03:28:36 +0000 (03:28 +0000)]
* Fixed regression in last commit: If we don't check for existance we'll get
  "Trying to get property of non-object" E_NOTICE in Article::loadPageData()
  when viewing a page that does not exist

18 years agoGenerate link to talk page of the blocker in Special:Ipblocklist, move contribs....
Rob Church [Sun, 15 Jan 2006 03:15:54 +0000 (03:15 +0000)]
Generate link to talk page of the blocker in Special:Ipblocklist, move contribs. link of the target next to their name

18 years ago* Generate user page links in Special:Ipblocklist where appropriate (i.e. not an...
Rob Church [Sun, 15 Jan 2006 02:17:02 +0000 (02:17 +0000)]
* Generate user page links in Special:Ipblocklist where appropriate (i.e. not an autoblock)

18 years agoAdd a few more translations
Rob Church [Sun, 15 Jan 2006 01:08:32 +0000 (01:08 +0000)]
Add a few more translations

18 years agoAdd basic Nahuatl language file
Rob Church [Sun, 15 Jan 2006 01:05:13 +0000 (01:05 +0000)]
Add basic Nahuatl language file

18 years agoRestoring ThomasV's patch for a hook & use of the existing $cache parameter on addPri...
Brion Vibber [Sat, 14 Jan 2006 23:56:01 +0000 (23:56 +0000)]
Restoring ThomasV's patch for a hook & use of the existing $cache parameter on addPrimaryWikiText.
Further testing indicates the problem was probably an incomplete sync or bad caching of
OutputPage.php on some servers, so the broken version of the function was called
on old page views, incorrectly storing old text items into the parser cache.

18 years agoImprove installer:
Rob Church [Sat, 14 Jan 2006 23:07:08 +0000 (23:07 +0000)]
Improve installer:

* Use a superuser account (such as root), if specifed, to create tables
* Don't overwrite conservative permissions on the mySQL user with ALL permissions, if said user exists
* Changes to some of the wording of explanations for fields

This will pre-emptively fix an issue arising if the regular-use user doesn't have permissions to set up the schema, since the end-user must now indicate this and provide superuser account details. Follow-on from last night's fixing 921 et al.

18 years agoSIDEBAR CACHE WILL SURVIVE!!!!!!11111oneoneone
Domas Mituzas [Sat, 14 Jan 2006 22:13:43 +0000 (22:13 +0000)]
SIDEBAR CACHE WILL SURVIVE!!!!!!11111oneoneone

18 years agooh right right right!!! we have different Article subclasses!!!!!!
Domas Mituzas [Sat, 14 Jan 2006 21:19:17 +0000 (21:19 +0000)]
oh right right right!!! we have different Article subclasses!!!!!!
"Learn, learn and again..learn (c) Lenin"

18 years agoHELLO!!! Less queries - faster site!!!!
Domas Mituzas [Sat, 14 Jan 2006 21:16:28 +0000 (21:16 +0000)]
HELLO!!! Less queries - faster site!!!!

18 years agorevert more of dammit's broken code
Brion Vibber [Sat, 14 Jan 2006 20:27:47 +0000 (20:27 +0000)]
revert more of dammit's broken code
PLEASE TEST THIS FOR GOD'S SAKE

18 years ago* Move PHP 5-friendly XHTML doctype hack to Sanitizer, use for sig checks.
Brion Vibber [Sat, 14 Jan 2006 17:42:08 +0000 (17:42 +0000)]
* Move PHP 5-friendly XHTML doctype hack to Sanitizer, use for sig checks.
  Fixes use of named entities in sigs on PHP 5

18 years ago* Added an attractive space on the namespace selector on contribs
Brion Vibber [Sat, 14 Jan 2006 17:19:49 +0000 (17:19 +0000)]
* Added an attractive space on the namespace selector on contribs

18 years agoQuick fix: revert cached sidebar
Brion Vibber [Sat, 14 Jan 2006 17:09:32 +0000 (17:09 +0000)]
Quick fix: revert cached sidebar
Breaks badly due to user language selection

18 years agoReverting this patch:
Brion Vibber [Sat, 14 Jan 2006 15:07:08 +0000 (15:07 +0000)]
Reverting this patch:
* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
  page view (comes after parser cache, if used). Patch by ThomasV.
Something still bugged in this; was saving bogus history entries to parser cache.

18 years agobring back mainpage navurl, it was used outside of sidebar
Domas Mituzas [Sat, 14 Jan 2006 14:21:58 +0000 (14:21 +0000)]
bring back mainpage navurl, it was used outside of sidebar

18 years agoNew Kalmyk language file
Alexander Sigachov [Sat, 14 Jan 2006 13:11:12 +0000 (13:11 +0000)]
New Kalmyk language file

18 years agoBe less anal about entry points, class definitions do no harm to anyone, defined...
Domas Mituzas [Sat, 14 Jan 2006 11:04:04 +0000 (11:04 +0000)]
Be less anal about entry points, class definitions do no harm to anyone, defined() is expensive

18 years agoremove cruft (all these names are resolved in buildSidebar)
Domas Mituzas [Sat, 14 Jan 2006 10:25:34 +0000 (10:25 +0000)]
remove cruft (all these names are resolved in buildSidebar)

18 years agoRevert brion's revert. And learning a lesson about rebinding references. Ergh, I...
Domas Mituzas [Sat, 14 Jan 2006 09:58:29 +0000 (09:58 +0000)]
Revert brion's revert. And learning a lesson about rebinding references. Ergh, I need to read php docs again :)
Removing several & in previous code would have fixed everything, bwah.

18 years agosome more die-with-proper-return-code
Brion Vibber [Sat, 14 Jan 2006 08:04:38 +0000 (08:04 +0000)]
some more die-with-proper-return-code

18 years ago* Allow input of the stub from a compressed file instead of stdin
Brion Vibber [Sat, 14 Jan 2006 05:46:48 +0000 (05:46 +0000)]
* Allow input of the stub from a compressed file instead of stdin
  for dumpTextPass.php; easier to get errors back on the shell

18 years agoRevert Domas's last checkin, it broke tabs on redirects. Please test before checkin!
Brion Vibber [Sat, 14 Jan 2006 04:35:43 +0000 (04:35 +0000)]
Revert Domas's last checkin, it broke tabs on redirects. Please test before checkin!

18 years agoReverted Domas's last checkin. Broken! Please test more thoroughly before checkin.
Brion Vibber [Sat, 14 Jan 2006 04:34:06 +0000 (04:34 +0000)]
Reverted Domas's last checkin. Broken! Please test more thoroughly before checkin.
Tabs had the wrong page info (redirect source instead of target)

18 years agoHandle redirects correctly, saves queries (no revision text loading for cached docume...
Domas Mituzas [Sat, 14 Jan 2006 03:11:24 +0000 (03:11 +0000)]
Handle redirects correctly, saves queries (no revision text loading for cached documents, etc)

18 years agosave ArticleID when it is around, saves one query :-)
Domas Mituzas [Sat, 14 Jan 2006 03:10:42 +0000 (03:10 +0000)]
save ArticleID when it is around, saves one query :-)

18 years agotransformMsg profiling hook, shows when site messages suck
Domas Mituzas [Sat, 14 Jan 2006 03:08:04 +0000 (03:08 +0000)]
transformMsg profiling hook, shows when site messages suck

18 years ago* Added wfDie() wrapper, and some manual die(-1), to force the return code
Brion Vibber [Sat, 14 Jan 2006 02:49:43 +0000 (02:49 +0000)]
* Added wfDie() wrapper, and some manual die(-1), to force the return code
  to the shell to return nonzero when we crap out with an error.

18 years agoLocalSettings.php to ignore list :D
Brion Vibber [Sat, 14 Jan 2006 02:46:40 +0000 (02:46 +0000)]
LocalSettings.php to ignore list :D