lhc/web/wiklou.git
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.  :|

17 years agoMore bugs! Why did I only spot these after commit >:|
Aryeh Gregor [Wed, 22 Nov 2006 23:32:21 +0000 (23:32 +0000)]
More bugs!  Why did I only spot these after commit >:|

17 years agoArgh, syntax error
Aryeh Gregor [Wed, 22 Nov 2006 23:27:10 +0000 (23:27 +0000)]
Argh, syntax error

17 years ago* Moved Werdna's new IP functions to the IP class
Aryeh Gregor [Wed, 22 Nov 2006 23:21:53 +0000 (23:21 +0000)]
* Moved Werdna's new IP functions to the IP class
* Handle bad input to new IP::isAddressInRange gracefully (return false)
* Block::doAutoblock always returns a bool now, as the docs say
* Split off Block::isWhitelistedIp from Block::doAutoblock
* Put AOL proxy IPs in whitelist, and also one from Singapore that was troublesome on enwiki (more should be added, probably?)
* Improve some docs
* Fix a bug: check if the passed IP is in the whitelist, not if the request IP is in the whitelist

17 years agoAdded placeholders for text injection by hooks to EditPage.php
Daniel Kinzler [Wed, 22 Nov 2006 20:53:11 +0000 (20:53 +0000)]
Added placeholders for text injection by hooks to EditPage.php

17 years agoThere used to be a big warning message, I think. Putting it back because nobody reads...
Brion Vibber [Wed, 22 Nov 2006 17:46:36 +0000 (17:46 +0000)]
There used to be a big warning message, I think. Putting it back because nobody reads the damn documentation.

17 years agoRemoving several ignored and optional messages.
Rotem Liss [Wed, 22 Nov 2006 17:06:44 +0000 (17:06 +0000)]
Removing several ignored and optional messages.

17 years ago(bug 8008) Update to Indonesian localisation (id) #41
Rotem Liss [Wed, 22 Nov 2006 17:04:20 +0000 (17:04 +0000)]
(bug 8008) Update to Indonesian localisation (id) #41

17 years agorevert until proper cleanup
Domas Mituzas [Wed, 22 Nov 2006 14:21:53 +0000 (14:21 +0000)]
revert until proper cleanup

17 years agoUpdate; setting autoblock_whitelist to be an ignored message.
Rotem Liss [Wed, 22 Nov 2006 14:11:46 +0000 (14:11 +0000)]
Update; setting autoblock_whitelist to be an ignored message.

17 years agoremove 'subkey' (255) for a field which is 40-chars long, fixes stuff...
Domas Mituzas [Wed, 22 Nov 2006 14:06:00 +0000 (14:06 +0000)]
remove 'subkey' (255) for a field which is 40-chars long, fixes stuff...

17 years agofixed a special page name comparison
Tim Starling [Wed, 22 Nov 2006 13:22:41 +0000 (13:22 +0000)]
fixed a special page name comparison

17 years ago* (bug 7883) Added autoblock whitelisting feature, using which specific ranges can...
Andrew Garrett [Wed, 22 Nov 2006 11:51:49 +0000 (11:51 +0000)]
* (bug 7883) Added autoblock whitelisting feature, using which specific ranges can be protected from autoblocking. These ranges are specified, in list format, in the autoblock_whitelist system message.

17 years agoApplying patch (slightly modified) from bug 8003 by AlefZet. The patch is clearly...
Tim Starling [Wed, 22 Nov 2006 09:06:24 +0000 (09:06 +0000)]
Applying patch (slightly modified) from bug 8003 by AlefZet. The patch is clearly necessary, but I'm not sure if it is sufficient. Also fixed indenting.

17 years agoImplementation of delimiterReplace() with a behaviour much closer to that of the...
Tim Starling [Wed, 22 Nov 2006 07:08:50 +0000 (07:08 +0000)]
Implementation of delimiterReplace() with a behaviour much closer to that of the model regex. Tested using comparitive fuzz testing. The only known difference now is where the start delimiter ends with an initial substring of the end delimiter, e.g. the previously mentioned case of C-style comments.

17 years ago(bug 7554) The correct MIME type for SVG images is now displayed on the image page...
Aryeh Gregor [Wed, 22 Nov 2006 00:25:57 +0000 (00:25 +0000)]
(bug 7554) The correct MIME type for SVG images is now displayed on the image page (image/svg+xml, not image/svg).  This is a hack because it only affects display, and doesn't correct the internal storage.  I don't know how the latter works, so I wasn't confident touching it.

17 years agoSince formatComment and commentBlock can take null as well as Title objects (per...
Aryeh Gregor [Tue, 21 Nov 2006 22:49:25 +0000 (22:49 +0000)]
Since formatComment and commentBlock can take null as well as Title objects (per r17833), corrected documentation (Title -> mixed).  Since revComment would immediately fail if passed anything but a Revision object or descendant, restore type hinting to that.

17 years agoFixes for the script rebuildLanguage.php:
Rotem Liss [Tue, 21 Nov 2006 19:26:11 +0000 (19:26 +0000)]
Fixes for the script rebuildLanguage.php:
* (bug 7983) Sort blocks in the correct order
* Sort the unknown messages alphabetically
* Use single apostrophe on messages which include dollar signs which are not followed by numbers

17 years ago(bug 7984) Update to Indonesian localisation (id) #40
Rotem Liss [Tue, 21 Nov 2006 19:01:40 +0000 (19:01 +0000)]
(bug 7984) Update to Indonesian localisation (id) #40

17 years ago(bug 7978) New localization for Old Church Slavonic
Rotem Liss [Tue, 21 Nov 2006 18:55:26 +0000 (18:55 +0000)]
(bug 7978) New localization for Old Church Slavonic

17 years agoFix.
Rotem Liss [Tue, 21 Nov 2006 18:43:52 +0000 (18:43 +0000)]
Fix.

17 years agoReverting the addition of class names near the parameters: it doesn't seem to have...
Rotem Liss [Tue, 21 Nov 2006 18:38:06 +0000 (18:38 +0000)]
Reverting the addition of class names near the parameters: it doesn't seem to have a purpose, and breaks PHP 5.0.4 on my computer (PHP raises error when the parameters are set to null).

17 years agoReplacing the manual user and user talk links of the blocker in Special:Ipblocklist...
Rotem Liss [Tue, 21 Nov 2006 18:26:55 +0000 (18:26 +0000)]
Replacing the manual user and user talk links of the blocker in Special:Ipblocklist to Linker::userLink and Linker::userToolLinks; for that, added the function Block::getBy, to get the blocker user ID.

17 years agobump style version for wikibits.js change
Tim Starling [Tue, 21 Nov 2006 12:12:20 +0000 (12:12 +0000)]
bump style version for wikibits.js change