lhc/web/wiklou.git
17 years ago* make compile
Niklas Laxström [Sat, 2 Dec 2006 21:34:13 +0000 (21:34 +0000)]
* make compile

17 years agoUpdate linker to make contributions links (in userToolLinks and userLink) and block...
Andrew Garrett [Sat, 2 Dec 2006 08:52:54 +0000 (08:52 +0000)]
Update linker to make contributions links (in userToolLinks and userLink) and block links (blockLink) use subpage notation, rather than pass the target as a parameter

17 years agoUpdate.
Rotem Liss [Sat, 2 Dec 2006 07:54:51 +0000 (07:54 +0000)]
Update.

17 years agoguess I should add a release note for that
Ilmari Karonen [Sat, 2 Dec 2006 06:34:27 +0000 (06:34 +0000)]
guess I should add a release note for that

17 years agoInclude a backslash character in wpEditToken to prevent editing from broken
Ilmari Karonen [Sat, 2 Dec 2006 06:19:48 +0000 (06:19 +0000)]
Include a backslash character in wpEditToken to prevent editing from broken
proxies that mangle such characters.  Not only is editing from open proxies
generally frowned upon on Wikimedia projects, but more importantly, these
particular proxies tend to break wiki markup in submitted content.  These
really are not edits we want to let through.

Yes, this is a hack.  We may eventually want to explicitly check for this
condition and provide a more informative response, but even so this would
still remain a useful fallback check just in case.

17 years ago(bug 8083) Applied patch for sk localisation
Leon Weber [Fri, 1 Dec 2006 22:56:25 +0000 (22:56 +0000)]
(bug 8083) Applied patch for sk localisation

17 years agoAdded hook 'EditPage::attemptSave' before an article is saved.
Leon Weber [Fri, 1 Dec 2006 21:18:40 +0000 (21:18 +0000)]
Added hook 'EditPage::attemptSave' before an article is saved.

17 years ago(bug 8024) Introduce "send me copies of emails I send to others" preference
Rob Church [Fri, 1 Dec 2006 18:39:43 +0000 (18:39 +0000)]
(bug 8024) Introduce "send me copies of emails I send to others" preference

17 years agoFixes.
Rotem Liss [Fri, 1 Dec 2006 14:32:27 +0000 (14:32 +0000)]
Fixes.

17 years agoChange realTimestamp to a function only, per Tim's advice.
Greg Sabino Mullane [Fri, 1 Dec 2006 04:37:48 +0000 (04:37 +0000)]
Change realTimestamp to a function only, per Tim's advice.

17 years agodisallow embedded line breaks in ISBNs; allowing them breaks things in a most interes...
Ilmari Karonen [Fri, 1 Dec 2006 03:16:22 +0000 (03:16 +0000)]
disallow embedded line breaks in ISBNs; allowing them breaks things in a most interesting manner

17 years agofix broken ISBN test, add two to test space-delimited ISBNs
Ilmari Karonen [Fri, 1 Dec 2006 03:09:39 +0000 (03:09 +0000)]
fix broken ISBN test, add two to test space-delimited ISBNs

17 years agoavoid matching "ISBN " in "ISBN foo"
Ilmari Karonen [Fri, 1 Dec 2006 02:59:21 +0000 (02:59 +0000)]
avoid matching "ISBN  " in "ISBN  foo"

17 years ago(bug 8110) allow spaces in ISBNs
Ilmari Karonen [Fri, 1 Dec 2006 02:39:19 +0000 (02:39 +0000)]
(bug 8110) allow spaces in ISBNs

17 years ago* Fix regression in authentication hook auto-creation on login
Brion Vibber [Thu, 30 Nov 2006 20:55:44 +0000 (20:55 +0000)]
* Fix regression in authentication hook auto-creation on login

17 years ago(bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode
Rob Church [Thu, 30 Nov 2006 17:09:27 +0000 (17:09 +0000)]
(bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode

This code is the stuff nightmares are made of. Nightmares that would make even David Gerard cry.

17 years ago* Add AuthPluginSetup hook to override $wgAuth after configuration
Brion Vibber [Thu, 30 Nov 2006 07:47:34 +0000 (07:47 +0000)]
* Add AuthPluginSetup hook to override $wgAuth after configuration

17 years agoBring reportQueryError back in sync and support the IGNORE option
Greg Sabino Mullane [Thu, 30 Nov 2006 01:00:08 +0000 (01:00 +0000)]
Bring reportQueryError back in sync and support the IGNORE option

17 years agomoved the status call so it is only called if max_lag is set, since that is the only...
Jason Richey [Wed, 29 Nov 2006 23:13:59 +0000 (23:13 +0000)]
moved the status call so it is only called if max_lag is set, since that is the only time it's value is useful.  This won't help Wikimedia, but it should help users who are not using multiple DB servers+max_lag

17 years agoUndo oddity from r17987; function doesn't need to be using references here in php5...
Brion Vibber [Wed, 29 Nov 2006 21:32:28 +0000 (21:32 +0000)]
Undo oddity from r17987; function doesn't need to be using references here in php5-land, just remove them and behave normally

17 years ago* Updates from helix84
Niklas Laxström [Wed, 29 Nov 2006 19:57:44 +0000 (19:57 +0000)]
* Updates from helix84

17 years agoPatch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
Ilmari Karonen [Wed, 29 Nov 2006 18:21:56 +0000 (18:21 +0000)]
Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php

17 years agoMinor tweaks to search query.
Greg Sabino Mullane [Wed, 29 Nov 2006 16:49:10 +0000 (16:49 +0000)]
Minor tweaks to search query.

17 years agoUpdate.
Rotem Liss [Wed, 29 Nov 2006 15:04:54 +0000 (15:04 +0000)]
Update.

17 years agoCheck for valid timestamp input, thanks to Brion for pointing this out.
Greg Sabino Mullane [Wed, 29 Nov 2006 14:05:52 +0000 (14:05 +0000)]
Check for valid timestamp input, thanks to Brion for pointing this out.

17 years agoAppears to be a dupe of the line above it, and ParserOptions::initialiseFromUser...
Nick Jenkins [Wed, 29 Nov 2006 12:57:54 +0000 (12:57 +0000)]
Appears to be a dupe of the line above it, and ParserOptions::initialiseFromUser() [ which is called by the ParserOptions constructor, which in turn is called by ParserOptions::newFromUser() ] does not appear to have any side effects.

17 years ago$fname is not defined / null in these contexts, replacing with __METHOD__
Nick Jenkins [Wed, 29 Nov 2006 12:45:47 +0000 (12:45 +0000)]
$fname is not defined / null in these contexts, replacing with __METHOD__

17 years ago$functionname not defined in this context, replacing with hardcoded "-setup" array...
Nick Jenkins [Wed, 29 Nov 2006 12:32:43 +0000 (12:32 +0000)]
$functionname not defined in this context, replacing with hardcoded "-setup" array key.

17 years agoProbable variable name typo, currently passing ref to NULL.
Nick Jenkins [Wed, 29 Nov 2006 12:06:58 +0000 (12:06 +0000)]
Probable variable name typo, currently passing ref to NULL.

17 years agoVariable name typo, but again I'm guessing this function isn't used if no-one has...
Nick Jenkins [Wed, 29 Nov 2006 11:58:49 +0000 (11:58 +0000)]
Variable name typo, but again I'm guessing this function isn't used if no-one has complained.

17 years agoConnecting to the database may help, but I'm guessing this function isn't used if...
Nick Jenkins [Wed, 29 Nov 2006 11:55:18 +0000 (11:55 +0000)]
Connecting to the database may help, but I'm guessing this function isn't used if no-one has complained.

17 years agoCompleting code housekeeping stuff for rest of includes/ directory: removing unused...
Nick Jenkins [Wed, 29 Nov 2006 11:43:58 +0000 (11:43 +0000)]
Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth.

17 years agoconvert "::1" and other pseudo-IPv6 addresses that Apache may throw at us to their...
Ilmari Karonen [Wed, 29 Nov 2006 08:08:57 +0000 (08:08 +0000)]
convert "::1" and other pseudo-IPv6 addresses that Apache may throw at us to their IPv4 counterparts

17 years ago*Automatically pre-fill the edit-summary field when undoing an edit.*Add a message...
Andrew Garrett [Wed, 29 Nov 2006 06:56:18 +0000 (06:56 +0000)]
*Automatically pre-fill the edit-summary field when undoing an edit.*Add a message at the top of the edit page when undoing an edit. This gives the user some feedback that their undo actually worked, rather than just directed them to an edit page. (Unless you actually look, there's no evidence of a successful undo, which could confuse users)

17 years agoPrevent the following strict-standards warnings - i.e. when running with error_loggin...
Nick Jenkins [Wed, 29 Nov 2006 05:45:03 +0000 (05:45 +0000)]
Prevent the following strict-standards warnings - i.e. when running with error_logging(E_ALL | E_STRICT); - which seems to disable the yucky "@" operator, as well as maxing out the pedantry of warnings. Nothing major found, just nice to be as explicit and as forward-compatible as possible.

* Strict Standards: Undefined index: switch in includes/Parser.php on line 3849
* Strict Standards: Undefined index: ref in includes/Parser.php on line 3818
* Strict Standards: Non-static method OutputPage::setEncodings() should not be called statically in index.php on line 11
* Strict Standards: Only variables should be assigned by reference in includes/Skin.php on line 888
* Strict Standards: Non-static method Title::newFromURL() should not be called statically in includes/SpecialContributions.php on line 178
* Strict Standards: Only variables should be assigned by reference in includes/GlobalFunctions.php on line 2054
* Strict Standards: Undefined index:  contributions-summary in languages/Language.php on line 764
* Strict Standards: Undefined index:  trackbackhtml in skins/MonoBook.php on line 86
* Strict Standards: Undefined index:  blockip in skins/MonoBook.php on line 204
* Strict Standards: Undefined index:  tagline in skins/MonoBook.php on line 261
* Strict Standards: Undefined index: uselang in includes/SkinTemplate.php on line 1159
* Strict Standards: Non-static method CoreParserFunctions::plural() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Undefined offset:  0 in includes/SkinTemplate.php on line 196
* Strict Standards: Undefined index:  USE INDEX in includes/Database.php on line 1015
* Strict Standards: Undefined index:  image_tests in includes/Parser.php on line 3488
* Strict Standards: Undefined offset:  0 in includes/Parser.php on line 3507
* Strict Standards: Non-static method ChangesList::newFromUser() should not be called statically in includes/SpecialWatchlist.php on line 361
* Strict Standards: Non-static method RecentChange::newFromCurRow() should not be called statically in includes/SpecialWatchlist.php on line 367
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/Exception.php on line 168
* Strict Standards: Non-static method LogPage::logName() should not be called statically in includes/SpecialContributions.php on line 325
* Strict Standards: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in maintenance/commandLine.inc on line 191
* Strict Standards: Undefined index:  meatball in languages/Language.php on line 234
* Strict Standards: rmdir(/tmp/mwParser-2108164586-images/thumb): Directory not empty in maintenance/parserTests.inc on line 605
* Cleaning out some new temp files left over by parserTests (there were one or two straggler dirs/files that would persist after the test run ended, due to new tests being added over time)
* Strict Standards: Non-static method CoreParserFunctions::special() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Declaration of ListUsersPage::preprocessResults() should be compatible with that of QueryPage::preprocessResults() in includes/SpecialListusers.php on line 38
* Strict Standards: Only variables should be passed by reference in includes/SpecialBlockip.php on line 175
* Strict Standards: Skin::include_once(skins/Standard.deps.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in includes/Skin.php on line 121
* Strict Standards: Declaration of ApiMain::getResult() should be compatible with that of ApiBase::getResult() in includes/api/ApiMain.php on line 35
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/WikiError.php on line 63
* Strict Standards: Non-static method WikiError::isError() should not be called statically in includes/SpecialImport.php on line 64
* Strict Standards: Non-static method ImportStreamSource::newFromInterwiki() should not be called statically in includes/SpecialImport.php on line 58<b
* Strict Standards: Only variables should be assigned by reference in includes/SpecialUndelete.php on line 501
* Strict Standards: Non-static method Image::newFromName() should not be called statically in thumb.php on line 56
* Strict Standards: Non-static method CoreParserFunctions::numberoffiles() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Non-static method CoreParserFunctions::statisticsFunction() should not be called statically in includes/CoreParserFunctions.php on line 139
* Strict Standards: Non-static method CoreParserFunctions::isRaw() should not be called statically in includes/CoreParserFunctions.php on line 128
* Strict Standards: Non-static method CoreParserFunctions::grammar() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Undefined offset:  1 in includes/SpecialMIMEsearch.php on line 130
* Strict Standards: Undefined index:  recentchangeslinked in skins/MonoBook.php on line 184
* Strict Standards: Declaration of DumpNotalkFilter::pass() should be compatible with that of DumpFilter::pass() in includes/Export.php on line 612
* Strict Standards: Declaration of DumpNamespaceFilter::pass() should be compatible with that of DumpFilter::pass() in includes/Export.php on line 665
* Strict Standards: Non-static method ImportStreamSource::newFromUpload() should not be called statically in includes/SpecialImport.php on line 46
* Strict Standards: Undefined offset:  5 in includes/Sanitizer.php on line 396
* Strict Standards: Undefined index:  wikidbUserName in includes/SpecialUserlogin.php on line 562
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryBase.php on line 95
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryBase.php on line 116
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryWatchlist.php on line 128
* Strict Standards: Undefined property:  stdClass::$rc_id in includes/api/ApiQueryBase.php on line 131
* Strict Standards: Undefined property:  stdClass::$rc_last_oldid in includes/api/ApiQueryBase.php on line 164
* Strict Standards: Undefined property:  stdClass::$rc_moved_to_ns in includes/api/ApiQueryBase.php on line 285
* Strict Standards: Undefined property:  stdClass::$rc_patrolled in includes/api/ApiQueryBase.php on line 176
* Strict Standards: Undefined index:  comment in includes/api/ApiFeedWatchlist.php on line 85
* Strict Standards: Undefined offset:  0 in includes/Skin.php on line 302
* Strict Standards: Non-static method User::SetupSession() should not be called statically in includes/SpecialUserlogin.php on line 15

... There are certain to be other things too, so this is not intended to be comprehensive, rather the above just stops most of the notifications I observed.

17 years ago(bug 6016) Left-aligned images should stack vertically, like right-aligned images...
Aryeh Gregor [Wed, 29 Nov 2006 02:43:04 +0000 (02:43 +0000)]
(bug 6016) Left-aligned images should stack vertically, like right-aligned images, not horizontally.

17 years agoFix broken contribution listings with postgres by adding a new variable
Greg Sabino Mullane [Tue, 28 Nov 2006 21:40:42 +0000 (21:40 +0000)]
Fix broken contribution listings with postgres by adding a new variable
to check if we are using integers or explicit timestamps.

17 years agoSlight UPDATE syntax adjustment for non-mysql databases.
Greg Sabino Mullane [Tue, 28 Nov 2006 21:32:59 +0000 (21:32 +0000)]
Slight UPDATE syntax adjustment for non-mysql databases.

17 years ago* (bug 6329) Date/Time settings on Frisian wikis do not conform to Frisian usage.
Niklas Laxström [Tue, 28 Nov 2006 19:01:14 +0000 (19:01 +0000)]
* (bug 6329) Date/Time settings on Frisian wikis do not conform to Frisian usage.

17 years ago* (bug 6910) Dates in Vietnamese localization broken
Niklas Laxström [Tue, 28 Nov 2006 16:58:58 +0000 (16:58 +0000)]
* (bug 6910) Dates in Vietnamese localization broken

17 years agoRevert r17964, breaks diff links for no apparent reason.
Brion Vibber [Tue, 28 Nov 2006 04:44:09 +0000 (04:44 +0000)]
Revert r17964, breaks diff links for no apparent reason.

17 years agoRevert special:deletedcontribs for now; it's not ready to go live without the
Brion Vibber [Tue, 28 Nov 2006 04:31:35 +0000 (04:31 +0000)]
Revert special:deletedcontribs for now; it's not ready to go live without the
index change so would hold up other work for a few days, and the code's kind
of ugly and should get refactored.
Would love to see this on a branch for the moment.

17 years agoNew special page Special:Deletedcontribs for browsing deleted edits made by a user.
Ilmari Karonen [Tue, 28 Nov 2006 03:22:12 +0000 (03:22 +0000)]
New special page Special:Deletedcontribs for browsing deleted edits made by a user.

NOTENOTENOTE: This is a one-night hack; feel free to tweak it mercilessly.  It has
a lot of common code with Special:Contributions that should be factored out.  There
is no link to this new page anywhere in the UI yet; I'd like people to test and
review this a bit before officially announcing it.  The page is currently only
available to users with deletedhistory privileges; a possible additional feature
might be to allow all users to list (but not view) their _own_ deleted edits.

17 years agomake undelete preview more consistent with normal article view (tidy, pagename)
Ilmari Karonen [Tue, 28 Nov 2006 00:32:00 +0000 (00:32 +0000)]
make undelete preview more consistent with normal article view (tidy, pagename)

17 years agoWoops, left a parameter off of the AuthPlugin default interface class. *embarrassed*
Brion Vibber [Tue, 28 Nov 2006 00:16:49 +0000 (00:16 +0000)]
Woops, left a parameter off of the AuthPlugin default interface class. *embarrassed*

17 years ago* Don't mess up diff link when revision is not deleted
Niklas Laxström [Mon, 27 Nov 2006 23:20:29 +0000 (23:20 +0000)]
* Don't mess up diff link when revision is not deleted

17 years ago* Indentation, magic numbers
Niklas Laxström [Mon, 27 Nov 2006 22:55:12 +0000 (22:55 +0000)]
* Indentation, magic numbers

17 years ago*I like verbs
Niklas Laxström [Mon, 27 Nov 2006 22:40:22 +0000 (22:40 +0000)]
*I like verbs

17 years ago* Xmlify a little
Niklas Laxström [Mon, 27 Nov 2006 19:49:48 +0000 (19:49 +0000)]
* Xmlify a little

17 years ago* Fix regression when selecting mysql 4.0 schema in installer
Brion Vibber [Mon, 27 Nov 2006 18:27:25 +0000 (18:27 +0000)]
* Fix regression when selecting mysql 4.0 schema in installer
* Detect PHP parse errors in generated config and dump the file
  as a debugging aid, instead of silently corrupting the behavior
  of the installer

17 years agoMessage order compatibility.
Rotem Liss [Mon, 27 Nov 2006 17:19:52 +0000 (17:19 +0000)]
Message order compatibility.

17 years agoFixed wikia link
Tim Starling [Mon, 27 Nov 2006 15:09:43 +0000 (15:09 +0000)]
Fixed wikia link

17 years agoFixes.
Rotem Liss [Mon, 27 Nov 2006 13:11:15 +0000 (13:11 +0000)]
Fixes.

17 years ago(bug 8012) Update for messagesSv.php (Swedish language)
Rotem Liss [Mon, 27 Nov 2006 12:58:01 +0000 (12:58 +0000)]
(bug 8012) Update for messagesSv.php (Swedish language)

17 years agoChanging lines like this: "extract( $dbw->tableNames( 'page', 'archive' ) );" to...
Nick Jenkins [Mon, 27 Nov 2006 08:36:57 +0000 (08:36 +0000)]
Changing lines like this: "extract( $dbw->tableNames( 'page', 'archive' ) );" to be like this: "list ($page, $archive) = $dbw->tableNamesN( 'page', 'archive' );".

Three reasons for this:
1) It's better for analysis tools [which want explicit variable declaration]
2) It's easier for a human to read, as it's completely explicit where the variables came from [which is something you don't get with extract() ]
3) It makes it easier to find everywhere where a variable is used with search/grep [which you can't currently do with $tbl_page variables from things like: "extract($db->tableNames( 'page', 'revision'), EXTR_PREFIX_ALL, 'tbl');"].

Otherwise, from a functionality/efficiency perspective the two forms should be identical.

By doing this have been able run static analysis over the usages of these variables, thus eliminating 5 unneeded table names from calls, plus removing 3 unused calls entirely, and it just feels subjectively slightly nicer to me.

17 years agoFixed Parser::getRevisionTimestamp()
Tim Starling [Mon, 27 Nov 2006 03:15:38 +0000 (03:15 +0000)]
Fixed Parser::getRevisionTimestamp()

17 years agoMake passing an invalid revid for undoing fail gracefully
Andrew Garrett [Mon, 27 Nov 2006 03:09:35 +0000 (03:09 +0000)]
Make passing an invalid revid for undoing fail gracefully

17 years ago(no commit message)
Tim Starling [Mon, 27 Nov 2006 02:43:36 +0000 (02:43 +0000)]

17 years agoFix display of link in "already rolled back" message for image/category pages ($1...
Aryeh Gregor [Mon, 27 Nov 2006 01:54:04 +0000 (01:54 +0000)]
Fix display of link in "already rolled back" message for image/category pages ($1 -> :$1)

17 years agoFixing a PHP warning about passing variables by reference from the function call...
Rotem Liss [Sun, 26 Nov 2006 19:01:56 +0000 (19:01 +0000)]
Fixing a PHP warning about passing variables by reference from the function call (should be passed from the function decleration itself, and they are passed in that way), like the other call to wfMerge in this file; tested.

17 years ago(bug 8040) Turkish internationalization contains errors
Rotem Liss [Sun, 26 Nov 2006 15:11:06 +0000 (15:11 +0000)]
(bug 8040) Turkish internationalization contains errors

17 years ago(bug 8039) Update to Indonesian localisation (id) #42
Rotem Liss [Sun, 26 Nov 2006 15:08:39 +0000 (15:08 +0000)]
(bug 8039) Update to Indonesian localisation (id) #42

17 years agoUpdate.
Rotem Liss [Sun, 26 Nov 2006 15:01:50 +0000 (15:01 +0000)]
Update.

17 years ago* Add new editFormPageTop placeholder for text injection
Aryeh Gregor [Sun, 26 Nov 2006 13:58:40 +0000 (13:58 +0000)]
* Add new editFormPageTop placeholder for text injection
* Use that instead of editFormTextTop for undo failure, so it displays above the preview if applicable
* <strong class="error"> for undo failure
* Explicitly declare $editFormX as public

17 years ago* Add AOL IPs to whitelist by default
Aryeh Gregor [Sun, 26 Nov 2006 13:41:36 +0000 (13:41 +0000)]
* Add AOL IPs to whitelist by default
* Add period to "undo failed" message
* Use <p>, not <br />

17 years agoAdd message explaining if undoing an edit failed.
Andrew Garrett [Sun, 26 Nov 2006 11:15:35 +0000 (11:15 +0000)]
Add message explaining if undoing an edit failed.

17 years ago* (bug 6295) Add a 'revision patching' functionality, where an edit can be undone...
Andrew Garrett [Sun, 26 Nov 2006 10:54:01 +0000 (10:54 +0000)]
* (bug 6295) Add a 'revision patching' functionality, where an edit can be undone (with a functionality similar to diff rev1 rev2 | patch -R rev3 -o rev3). This is triggered by including &undo=revid in an edit URL. A link to a URL that will undo a given edit is shown on NEW NON-CURRENT revision headers on diff pages.

17 years ago(bug 8009) Title change for ancientpages in de
Andrew Garrett [Sun, 26 Nov 2006 00:10:40 +0000 (00:10 +0000)]
(bug 8009) Title change for ancientpages in de

17 years agooops
Tim Starling [Sat, 25 Nov 2006 17:32:41 +0000 (17:32 +0000)]
oops

17 years agoFixed inefficient use of array_keys() introduced by Nick in r17880. If this is settin...
Tim Starling [Sat, 25 Nov 2006 17:11:58 +0000 (17:11 +0000)]
Fixed inefficient use of array_keys() introduced by Nick in r17880. If this is setting off alarms, then fix the alarms.

17 years agoRemoved wfRangeStartEnd() and wfIsAddressInRange() -- avoid proliferation of global...
Tim Starling [Sat, 25 Nov 2006 16:27:33 +0000 (16:27 +0000)]
Removed wfRangeStartEnd() and wfIsAddressInRange() -- avoid proliferation of global functions.

17 years ago* Added temporary special-case AOL proxy detection, they're automatically counted...
Tim Starling [Sat, 25 Nov 2006 16:24:44 +0000 (16:24 +0000)]
* Added temporary special-case AOL proxy detection, they're automatically counted as trusted proxies for now.
* Removed wfRangeStartEnd() and wfIsAddressInRange() -- avoid proliferation of global functions.

17 years ago(bug 7859) Updates for Kazakh i18n
Rotem Liss [Sat, 25 Nov 2006 14:35:59 +0000 (14:35 +0000)]
(bug 7859) Updates for Kazakh i18n

17 years ago(bug 7859) Updates for Kazakh i18n
Rotem Liss [Sat, 25 Nov 2006 14:12:00 +0000 (14:12 +0000)]
(bug 7859) Updates for Kazakh i18n

17 years agohooks.txt documentation for UploadForm:initial hook added in r17917
Andrew Garrett [Sat, 25 Nov 2006 13:51:50 +0000 (13:51 +0000)]
hooks.txt documentation for UploadForm:initial hook added in r17917

17 years agoFix.
Rotem Liss [Sat, 25 Nov 2006 07:44:20 +0000 (07:44 +0000)]
Fix.

17 years ago(bug 8031) Update to Japanese localisation (ja)
Rotem Liss [Sat, 25 Nov 2006 07:40:09 +0000 (07:40 +0000)]
(bug 8031) Update to Japanese localisation (ja)

17 years agoPatch by Leon Weber that adds a hook 'UploadForm:initial' before the upload form...
Andrew Garrett [Fri, 24 Nov 2006 23:48:22 +0000 (23:48 +0000)]
Patch by Leon Weber that adds a hook 'UploadForm:initial' before the upload form is generated, and two member variable for text injection into the form, which can be filled by the hooks.

17 years ago* Use INSERT IGNORE for db-based BagOStuff add/insert, for more memcache-like
Brion Vibber [Fri, 24 Nov 2006 22:11:47 +0000 (22:11 +0000)]
* Use INSERT IGNORE for db-based BagOStuff add/insert, for more memcache-like
  behavior when keys already exist on add (instead of dying with an error...)

17 years ago* Installer support for experimental MySQL 4.1/5.0 binary-safe schema
Brion Vibber [Fri, 24 Nov 2006 22:10:11 +0000 (22:10 +0000)]
* Installer support for experimental MySQL 4.1/5.0 binary-safe schema

17 years ago(bug 8031) Update to Japanese localisation (ja)
Rotem Liss [Fri, 24 Nov 2006 19:16:39 +0000 (19:16 +0000)]
(bug 8031) Update to Japanese localisation (ja)

17 years ago(bug 8009) Automatic edit summary for redirects is not filled for edits in existing...
Rotem Liss [Fri, 24 Nov 2006 19:06:35 +0000 (19:06 +0000)]
(bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages

17 years agoRemoving several ignored messages from the language files.
Rotem Liss [Fri, 24 Nov 2006 15:38:00 +0000 (15:38 +0000)]
Removing several ignored messages from the language files.

17 years agoRemoving newtalkseperator from all the language files except for English.
Rotem Liss [Fri, 24 Nov 2006 15:34:23 +0000 (15:34 +0000)]
Removing newtalkseperator from all the language files except for English.

17 years ago(bug 8026) Update to Japanese localisation (ja)
Rotem Liss [Fri, 24 Nov 2006 15:21:40 +0000 (15:21 +0000)]
(bug 8026) Update to Japanese localisation (ja)

17 years agoProbably a typo.
Rotem Liss [Fri, 24 Nov 2006 15:11:43 +0000 (15:11 +0000)]
Probably a typo.

17 years ago(bug 7859) Updates for Kazakh i18n
Rotem Liss [Fri, 24 Nov 2006 15:06:50 +0000 (15:06 +0000)]
(bug 7859) Updates for Kazakh i18n

17 years ago(bug 8020) Update for Cantonese language (zh-yue) #6
Rotem Liss [Fri, 24 Nov 2006 14:59:04 +0000 (14:59 +0000)]
(bug 8020) Update for Cantonese language (zh-yue) #6

17 years agoSetting newtalkseperator as an ignored message, and removing it from the Hebrew trans...
Rotem Liss [Fri, 24 Nov 2006 14:51:01 +0000 (14:51 +0000)]
Setting newtalkseperator as an ignored message, and removing it from the Hebrew translation; will remove from other translations later.

17 years ago(bug 8012) Update for messagesSv.php (Swedish language)
Rotem Liss [Fri, 24 Nov 2006 14:46:05 +0000 (14:46 +0000)]
(bug 8012) Update for messagesSv.php (Swedish language)

17 years agoUpdate.
Rotem Liss [Fri, 24 Nov 2006 10:22:22 +0000 (10:22 +0000)]
Update.

17 years ago(bug 7892) Add media count to category page, à la subcats/pages. Used a new count...
Aryeh Gregor [Fri, 24 Nov 2006 06:41:02 +0000 (06:41 +0000)]
(bug 7892) Add media count to category page, à la subcats/pages.  Used a new count() method I added to ImageGallery class.

17 years agoUpdate.
Rotem Liss [Thu, 23 Nov 2006 18:55:41 +0000 (18:55 +0000)]
Update.

17 years agoAs per Rob's suggestion, remove autosummaries for short new pages, and replace them...
Andrew Garrett [Thu, 23 Nov 2006 11:15:46 +0000 (11:15 +0000)]
As per Rob's suggestion, remove autosummaries for short new pages, and replace them with autosummaries for all new pages. On more reflection, this makes a lot more sense

17 years ago(bug 8013) Add autosummary for new pages with >500 characters. I would merge this...
Andrew Garrett [Thu, 23 Nov 2006 09:32:28 +0000 (09:32 +0000)]
(bug 8013) Add autosummary for new pages with >500 characters. I would merge this with the original short new page autosummary, but this would break current message customisations on other wikis. en.wp comes to mind.

17 years agoWould probably be wanting "$wgStyleVersion" rather than "wgStyleVersion", otherwise...
Nick Jenkins [Thu, 23 Nov 2006 08:37:52 +0000 (08:37 +0000)]
Would probably be wanting "$wgStyleVersion" rather than "wgStyleVersion", otherwise if metadata.js changes can bump $wgStyleVersion till the cows come home, but still won't cause it to be refreshed ;-)

17 years agoProbable bug in wfIsAddressInRange() - $unsignedIP and $unsignedip are not the same...
Nick Jenkins [Thu, 23 Nov 2006 08:30:37 +0000 (08:30 +0000)]
Probable bug in wfIsAddressInRange() - $unsignedIP and $unsignedip are not the same thing. One is defined, and the other is undefined / null.

17 years agoCode housekeeping stuff (and barring any stuff-ups on my behalf, there should be...
Nick Jenkins [Thu, 23 Nov 2006 08:25:56 +0000 (08:25 +0000)]
Code housekeeping stuff (and barring any stuff-ups on my behalf, there should be no changes in behaviour whatsoever after this) -
* removing some unused global declarations.
* removing or commenting out or adding comments for unused local vars.
* Adding one or two local var declarations.
* Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness].
* remove one or two pass-by-reference function declarations where the value is not modified.
* Adding some braces to if-else blocks.
* In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether.
* Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences.

... up to "LinksUpdate.php" in the includes/ directory.

17 years agowfGetIp-> in checking autoblock whitelist in doAutoblock. Kudos to Simetrical for...
Andrew Garrett [Thu, 23 Nov 2006 05:10:29 +0000 (05:10 +0000)]
wfGetIp-> in checking autoblock whitelist in doAutoblock. Kudos to Simetrical for spotting the issue.

17 years agoRevert last three commits. I totally broke autoblock and didn't notice somehow. :|
Aryeh Gregor [Wed, 22 Nov 2006 23:42:39 +0000 (23:42 +0000)]
Revert last three commits.  I totally broke autoblock and didn't notice somehow.  :|