lhc/web/wiklou.git
13 years agoFix r69229. This should not be abstract, return dummy in parent
Chad Horohoe [Thu, 22 Jul 2010 13:04:37 +0000 (13:04 +0000)]
Fix r69229. This should not be abstract, return dummy in parent

13 years agoFixup r69719 per comments
Sam Reed [Thu, 22 Jul 2010 10:18:41 +0000 (10:18 +0000)]
Fixup r69719 per comments

13 years agoFollowup r69719 r66716, add variable definition to false
Sam Reed [Thu, 22 Jul 2010 09:47:46 +0000 (09:47 +0000)]
Followup r69719 r66716, add variable definition to false

Per -rakkaus/#mediawiki-i18n- [22-Jul-2010 09:44:40] PHP Notice:  Undefined property: ApiQueryInfo::$fld_displaytitle in /www/w/includes/api/ApiQueryInfo.php on line 266

13 years agoRename the iwl_prefix_from_title index (again) to iwl_prefix_title_from and change...
Roan Kattouw [Thu, 22 Jul 2010 08:52:58 +0000 (08:52 +0000)]
Rename the iwl_prefix_from_title index (again) to iwl_prefix_title_from and change the field order accordingly. Fixed r66892 which inserted iwl_from into the index (which was a good thing) but put it in the wrong place. I went out of my way to make sure the index isn't dropped and recreated needlessly, but since I don't know how to do the drop-index-if-exists thing in the Postgres updater, I left that out. The Postgres updater will now create the new index without dropping any old incarnations if present. I did create the patch files with the DROP INDEX statements to make it easier to add this behavior. Also tweak ApiQueryIWBacklinks to use this index properly.

13 years ago(bug 23936) - Add "displaytitle" to query/info API
Sam Reed [Thu, 22 Jul 2010 08:48:34 +0000 (08:48 +0000)]
(bug 23936) - Add "displaytitle" to query/info API

Complete usage of accidental code from r69716

Move a $db = $this->getDB to after check in getTSIDs

13 years agojson_encode() -> FormatJson::encode()
Roan Kattouw [Thu, 22 Jul 2010 08:08:37 +0000 (08:08 +0000)]
json_encode() -> FormatJson::encode()

13 years agoFix bug from r61759
Sam Reed [Thu, 22 Jul 2010 07:00:38 +0000 (07:00 +0000)]
Fix bug from r61759

Assign $text = null; before using it in a hook call

13 years agoAdd braces
Sam Reed [Thu, 22 Jul 2010 06:44:23 +0000 (06:44 +0000)]
Add braces

13 years agoUse $wgContLang not $wgLang for checkTitleEncoding() and getSpecialPageAliases()...
Tim Starling [Thu, 22 Jul 2010 04:00:39 +0000 (04:00 +0000)]
Use $wgContLang not $wgLang for checkTitleEncoding() and getSpecialPageAliases(), it doesn't make sense to use the user language, WebRequest and SpecialPage certainly don't. The DatabaseOracle use of checkTitleEncoding() is weird and probably broken, but at least it uses the right object now.

13 years agoFollow up r69516. Hardcode $wgVectorExtraStyles to the vector folder.
Platonides [Wed, 21 Jul 2010 21:54:46 +0000 (21:54 +0000)]
Follow up r69516. Hardcode $wgVectorExtraStyles to the vector folder.

13 years agoAdd quotation marks for consistency with other log entries
Raimond Spekking [Wed, 21 Jul 2010 19:05:38 +0000 (19:05 +0000)]
Add quotation marks for consistency with other log entries
Per suggestion of The Evil IP address at twn

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Wed, 21 Jul 2010 19:02:25 +0000 (19:02 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-07-21 18:37:00 UTC)

13 years agoStyle and doc improvements
Jeroen De Dauw [Wed, 21 Jul 2010 17:31:00 +0000 (17:31 +0000)]
Style and doc improvements

13 years ago@ -> wfSuppressWarnings and wfRestoreWarnings
Jeroen De Dauw [Wed, 21 Jul 2010 17:24:39 +0000 (17:24 +0000)]
@ -> wfSuppressWarnings and wfRestoreWarnings

13 years agoStyle and doc improvements
Jeroen De Dauw [Wed, 21 Jul 2010 17:20:50 +0000 (17:20 +0000)]
Style and doc improvements

13 years agostylize.php on SearchEngine.php
Bryan Tong Minh [Wed, 21 Jul 2010 16:57:43 +0000 (16:57 +0000)]
stylize.php on SearchEngine.php

13 years agoShow the copyright message in user preference language for Wikimedia wikis, important...
Raimond Spekking [Wed, 21 Jul 2010 16:01:10 +0000 (16:01 +0000)]
Show the copyright message in user preference language for Wikimedia wikis, important especially for multi language projects like Commons.
Stick to content language for standard MediaWiki installations for the case that [[MediaWiki:Copyright]] is customized.
It is very unlikely that a third party installation translate its customization in 204 languages like we have done it at Translatewiki for WikimediaMessages

13 years agoFollow-up r69233: Add existence check for NS_MEDIA titles
Bryan Tong Minh [Wed, 21 Jul 2010 14:40:24 +0000 (14:40 +0000)]
Follow-up r69233: Add existence check for NS_MEDIA titles

13 years agoFollow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special...
Bryan Tong Minh [Wed, 21 Jul 2010 14:31:24 +0000 (14:31 +0000)]
Follow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special:Search/$par case, not applicable to API

13 years agoStyle and doc improvements
Jeroen De Dauw [Wed, 21 Jul 2010 10:56:35 +0000 (10:56 +0000)]
Style and doc improvements

13 years agoCoding style: camelCase, not CamelCase
Roan Kattouw [Wed, 21 Jul 2010 10:30:02 +0000 (10:30 +0000)]
Coding style: camelCase, not CamelCase

13 years agoClarified field and method visibility and doc improvements
Jeroen De Dauw [Wed, 21 Jul 2010 09:42:07 +0000 (09:42 +0000)]
Clarified field and method visibility and doc improvements

13 years agoDoc and style improvements
Jeroen De Dauw [Wed, 21 Jul 2010 09:34:16 +0000 (09:34 +0000)]
Doc and style improvements

13 years agoThis improves on the CSS hack used in r69317 - which worked fine but in some crazy...
Trevor Parscal [Tue, 20 Jul 2010 23:47:54 +0000 (23:47 +0000)]
This improves on the CSS hack used in r69317 - which worked fine but in some crazy extreme hypothetical case could end up showing the text.

13 years ago* Split Mysql/Sqlite updates into their own files
Chad Horohoe [Tue, 20 Jul 2010 22:28:50 +0000 (22:28 +0000)]
* Split Mysql/Sqlite updates into their own files
* Rename Update -> DatabaseUpdaters to be more consistent with DatabaseInstaller
* Made DatabaseUpdaters abstract and merged the Updaters interface in, had Mysql/Oracle/Sqlite subclass it. Entry point is now factory DatabaseUpdaters::newForDB()

13 years agoAdded an explanation for the way the code is set up.
Mark A. Hershberger [Tue, 20 Jul 2010 21:24:07 +0000 (21:24 +0000)]
Added an explanation for the way the code is set up.

13 years agoSlightly different, but similar to brion's tests. I wrote this before I discovered...
Mark A. Hershberger [Tue, 20 Jul 2010 21:17:22 +0000 (21:17 +0000)]
Slightly different, but similar to brion's tests.  I wrote this before I discovered brion's tests.  Maybe they'll be useful to someone some day.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 20 Jul 2010 18:54:08 +0000 (18:54 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-07-20 18:47:00 UTC)

13 years agoFollow up r69444. Address CR comment by Simetrical.
Platonides [Tue, 20 Jul 2010 17:35:55 +0000 (17:35 +0000)]
Follow up r69444. Address CR comment by Simetrical.

13 years agofixes r69333 — remove dependency on iconv, use icu or native only
Mark A. Hershberger [Tue, 20 Jul 2010 16:14:09 +0000 (16:14 +0000)]
fixes r69333 — remove dependency on iconv, use icu or native only

13 years agotrailing ws cleanup
Mark A. Hershberger [Tue, 20 Jul 2010 15:50:25 +0000 (15:50 +0000)]
trailing ws cleanup

13 years agoadmin parameter is required now since we no longer default to WikiSysop
Mark A. Hershberger [Tue, 20 Jul 2010 15:47:01 +0000 (15:47 +0000)]
admin parameter is required now since we no longer default to WikiSysop

13 years agoPrefer the intl PECL extension for ICU Unicode
Mark A. Hershberger [Tue, 20 Jul 2010 15:41:24 +0000 (15:41 +0000)]
Prefer the intl PECL extension for ICU Unicode

13 years agorevert r69620
Mark A. Hershberger [Tue, 20 Jul 2010 15:12:29 +0000 (15:12 +0000)]
revert r69620

13 years agoAdmin is required now.
Mark A. Hershberger [Tue, 20 Jul 2010 15:05:34 +0000 (15:05 +0000)]
Admin is required now.

13 years agoFix typo
Roan Kattouw [Tue, 20 Jul 2010 14:06:35 +0000 (14:06 +0000)]
Fix typo

13 years agoDoc and style improvements
Jeroen De Dauw [Tue, 20 Jul 2010 13:53:03 +0000 (13:53 +0000)]
Doc and style improvements

13 years agoFollowup to r69553: double-escape arguments because we're feeding them to a shell...
Roan Kattouw [Tue, 20 Jul 2010 13:11:53 +0000 (13:11 +0000)]
Followup to r69553: double-escape arguments because we're feeding them to a shell twice

13 years agoDoc and style improvements
Jeroen De Dauw [Tue, 20 Jul 2010 11:35:38 +0000 (11:35 +0000)]
Doc and style improvements

13 years agoClarified field and method visibility and added TODOs
Jeroen De Dauw [Tue, 20 Jul 2010 11:27:52 +0000 (11:27 +0000)]
Clarified field and method visibility and added TODOs

13 years agoClarified field and method visibility
Jeroen De Dauw [Tue, 20 Jul 2010 11:25:36 +0000 (11:25 +0000)]
Clarified field and method visibility

13 years agoDoc and style improvements
Jeroen De Dauw [Tue, 20 Jul 2010 11:17:36 +0000 (11:17 +0000)]
Doc and style improvements

13 years agoClarified field and method visibility
Jeroen De Dauw [Tue, 20 Jul 2010 11:08:30 +0000 (11:08 +0000)]
Clarified field and method visibility

13 years agoRe-did r69590
Jeroen De Dauw [Tue, 20 Jul 2010 11:00:51 +0000 (11:00 +0000)]
Re-did r69590

13 years ago* Fixed "link" parameter in image links with "thumb" parameter, previously the link...
Tim Starling [Tue, 20 Jul 2010 10:28:00 +0000 (10:28 +0000)]
* Fixed "link" parameter in image links with "thumb" parameter, previously the link parameter was just ignored. The fix required the relevant code to be factored out so both makeImageLink2() and makeThumbLink2() could use it.
* Fixed the coding style and escaping of some nearby code. The lack of escaping on $url would have caused invalid HTML (bare ampersand) if ugly URLs were combined with page parameters.

13 years agoUncommented the DROP TABLE queries for parsertest_*, accidentally commented out in...
Tim Starling [Tue, 20 Jul 2010 10:10:24 +0000 (10:10 +0000)]
Uncommented the DROP TABLE queries for parsertest_*, accidentally commented out in r40020.

13 years agoApplying the text changes to the file as in r69589, to complete the rename from Insta...
Tim Starling [Tue, 20 Jul 2010 10:06:41 +0000 (10:06 +0000)]
Applying the text changes to the file as in r69589, to complete the rename from InstallerDBType to DatabaseInstaller.

13 years agoContinued cleanup of r69589: adding DatabaseInstaller.php, copied from InstallerDBTyp...
Tim Starling [Tue, 20 Jul 2010 10:03:27 +0000 (10:03 +0000)]
Continued cleanup of r69589: adding DatabaseInstaller.php, copied from InstallerDBType.php@69588.

13 years agoCleanup for r69589 etc., deleting the file so I can copy it again.
Tim Starling [Tue, 20 Jul 2010 10:01:34 +0000 (10:01 +0000)]
Cleanup for r69589 etc., deleting the file so I can copy it again.

13 years agoFollow up to r69589
Jeroen De Dauw [Tue, 20 Jul 2010 09:49:41 +0000 (09:49 +0000)]
Follow up to r69589

13 years agoFollow up to r69589
Jeroen De Dauw [Tue, 20 Jul 2010 09:49:07 +0000 (09:49 +0000)]
Follow up to r69589

13 years agoClarified field and method visibility
Jeroen De Dauw [Tue, 20 Jul 2010 09:41:52 +0000 (09:41 +0000)]
Clarified field and method visibility

13 years agoRenamed InstallerDBType to DatabaseInstaller
Jeroen De Dauw [Tue, 20 Jul 2010 09:30:33 +0000 (09:30 +0000)]
Renamed InstallerDBType to DatabaseInstaller

13 years agoFollowup to r69587: forgot to hit Save *facepalm*
Roan Kattouw [Tue, 20 Jul 2010 09:26:56 +0000 (09:26 +0000)]
Followup to r69587: forgot to hit Save *facepalm*

13 years agoFollowup to r69237: clarify documentation to avoid confusion with title normalization...
Roan Kattouw [Tue, 20 Jul 2010 09:24:26 +0000 (09:24 +0000)]
Followup to r69237: clarify documentation to avoid confusion with title normalization, minor style tweak

13 years agoKill two functions in Parser that have been ununused forever, add a clarifying commen...
Roan Kattouw [Tue, 20 Jul 2010 09:23:37 +0000 (09:23 +0000)]
Kill two functions in Parser that have been ununused forever, add a clarifying comment elsewhere.

13 years agoSolving an issue in r69542
Peter Potrowl [Tue, 20 Jul 2010 08:47:06 +0000 (08:47 +0000)]
Solving an issue in r69542

13 years agoRemove useless <hr />. If someone wants to highlight this warning it can be better...
Raimond Spekking [Tue, 20 Jul 2010 07:34:39 +0000 (07:34 +0000)]
Remove useless <hr />. If someone wants to highlight this warning it can be better done with CSS.

13 years agoFollowup to r69580, did I mention MySQL sucks?
OverlordQ [Tue, 20 Jul 2010 06:02:09 +0000 (06:02 +0000)]
Followup to r69580, did I mention MySQL sucks?

13 years agoFollowup to r69542, since the new installer doesn't support PG, this is going into...
OverlordQ [Tue, 20 Jul 2010 05:59:51 +0000 (05:59 +0000)]
Followup to r69542, since the new installer doesn't support PG, this is going into updaters.inc

13 years agoFix URL for $GLOBALS overwrite vulnerability.
Tim Starling [Tue, 20 Jul 2010 02:17:18 +0000 (02:17 +0000)]
Fix URL for $GLOBALS overwrite vulnerability.

13 years agoUpdate the old magic with new one.
Platonides [Mon, 19 Jul 2010 23:08:52 +0000 (23:08 +0000)]
Update the old magic with new one.

Not only should this have used setContainsOldMagic() instead of manually modifying the member,
the outdated magic reduced the caching time to one hour even if you just used something like
{{currentmonth}}, which is hinted to one day.

This is the only usage of old magic, we could remove it but perhaps it is used by some extension?

13 years agoFix r69539: use $this->skin->stylename instead of $this->stylename, fix the path...
Roan Kattouw [Mon, 19 Jul 2010 20:46:29 +0000 (20:46 +0000)]
Fix r69539: use $this->skin->stylename instead of $this->stylename, fix the path and access globals the right way

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Mon, 19 Jul 2010 19:23:15 +0000 (19:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-07-19 19:11:00 UTC)

13 years agoclean up space/tab stuff
Ariel Glenn [Mon, 19 Jul 2010 18:36:52 +0000 (18:36 +0000)]
clean up space/tab stuff

13 years agoFix typo
Roan Kattouw [Mon, 19 Jul 2010 15:15:41 +0000 (15:15 +0000)]
Fix typo

13 years agoFollowup to r69546: defer sending of notification by 15 minutes
Roan Kattouw [Mon, 19 Jul 2010 15:13:41 +0000 (15:13 +0000)]
Followup to r69546: defer sending of notification by 15 minutes

13 years agomake image page respect different sizes of individual frames, as suggested by Markus...
Daniel Kinzler [Mon, 19 Jul 2010 14:35:20 +0000 (14:35 +0000)]
make image page respect different sizes of individual frames, as suggested by Markus Glaser.

13 years agoRemove 1.6 compat thingies
Chad Horohoe [Mon, 19 Jul 2010 14:05:57 +0000 (14:05 +0000)]
Remove 1.6 compat thingies

13 years ago(bug 24398) Make addwiki.php send a notification e-mail to newprojects@lists.wikimedi...
Roan Kattouw [Mon, 19 Jul 2010 14:00:51 +0000 (14:00 +0000)]
(bug 24398) Make addwiki.php send a notification e-mail to newprojects@lists.wikimedia.org . Needs addition of fourth parameter for domain name, will document at wikitechwiki

13 years ago* #siteSub (tagline) isn't headline -> replaced by div (partial fix to bug 457)
Danny B [Mon, 19 Jul 2010 13:15:45 +0000 (13:15 +0000)]
* #siteSub (tagline) isn't headline -> replaced by div (partial fix to bug 457)

13 years ago* 2009 -> 2010
Danny B [Mon, 19 Jul 2010 12:31:35 +0000 (12:31 +0000)]
* 2009 -> 2010

13 years agoAdd iw_api and iw_wikiid fields to the interwiki table, plus rudimentary support...
Roan Kattouw [Mon, 19 Jul 2010 11:55:30 +0000 (11:55 +0000)]
Add iw_api and iw_wikiid fields to the interwiki table, plus rudimentary support in Interwiki.php and Title.php . Code written by peter17 in the iwtransclusion branch. This revision is a partial merge of r68170, r68448, r69480, r69540 and r69541

13 years agoFollow up to r69538: Use $stylename member instead of hardcoding vector.
Danny B [Mon, 19 Jul 2010 10:58:12 +0000 (10:58 +0000)]
Follow up to r69538: Use $stylename member instead of hardcoding vector.

13 years ago* (bug 24401) SimpleSearch: No button/text indicating 'Search' if image is disabled
Danny B [Mon, 19 Jul 2010 10:52:01 +0000 (10:52 +0000)]
* (bug 24401) SimpleSearch: No button/text indicating 'Search' if image is disabled

13 years agoReverse-merge r69521 from 1.16wmf4: fix OpenSearch caching
Roan Kattouw [Mon, 19 Jul 2010 08:19:54 +0000 (08:19 +0000)]
Reverse-merge r69521 from 1.16wmf4: fix OpenSearch caching

13 years agoFix fatal error from undefined $wgParser.
Brian Wolff [Mon, 19 Jul 2010 05:57:23 +0000 (05:57 +0000)]
Fix fatal error from undefined $wgParser.

13 years agoRemoved redundant array_reverse I found 3 months back
Jeroen De Dauw [Mon, 19 Jul 2010 04:23:39 +0000 (04:23 +0000)]
Removed redundant array_reverse I found 3 months back

13 years agoFollow up to r69528 (forgot to commit this file)
Jeroen De Dauw [Mon, 19 Jul 2010 04:18:51 +0000 (04:18 +0000)]
Follow up to r69528 (forgot to commit this file)

13 years agoClarified field and method visibility
Jeroen De Dauw [Mon, 19 Jul 2010 04:15:38 +0000 (04:15 +0000)]
Clarified field and method visibility

13 years agoSplit WebInstallerPage and deriving classes from WebInstaller.php to WebInstallerPage.php
Jeroen De Dauw [Mon, 19 Jul 2010 04:05:44 +0000 (04:05 +0000)]
Split WebInstallerPage and deriving classes from WebInstaller.php to WebInstallerPage.php

13 years agoClarified field and method visibility
Jeroen De Dauw [Mon, 19 Jul 2010 03:16:54 +0000 (03:16 +0000)]
Clarified field and method visibility

13 years agoClarified field and method visibility
Jeroen De Dauw [Mon, 19 Jul 2010 02:41:54 +0000 (02:41 +0000)]
Clarified field and method visibility

13 years agoFollow up r69508. Mention both functions.
Platonides [Sun, 18 Jul 2010 21:40:49 +0000 (21:40 +0000)]
Follow up r69508. Mention both functions.

13 years ago(Bug 24436) Move cssjanus to maintenance folder
Platonides [Sun, 18 Jul 2010 21:31:52 +0000 (21:31 +0000)]
(Bug 24436) Move cssjanus to maintenance folder

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sun, 18 Jul 2010 19:37:51 +0000 (19:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-07-18 19:30:00 UTC)

13 years ago* re r69332, r64217: complete removal of WikiSysop for CLI installer
Mark A. Hershberger [Sun, 18 Jul 2010 18:52:05 +0000 (18:52 +0000)]
* re r69332, r64217: complete removal of WikiSysop for CLI installer
* Incorporate new Installer::performInstallation() function
* Update SQLite schema tables to insert data to updatelog correctly

13 years agoLocalization update for he.
Rotem Liss [Sun, 18 Jul 2010 18:41:00 +0000 (18:41 +0000)]
Localization update for he.

13 years agoUse $stylename member instead of hardcoding vector.
Platonides [Sun, 18 Jul 2010 18:38:58 +0000 (18:38 +0000)]
Use $stylename member instead of hardcoding vector.

13 years agoFollow-up r69475: also correct the name in RELEASE-NOTES
Alexandre Emsenhuber [Sun, 18 Jul 2010 17:37:00 +0000 (17:37 +0000)]
Follow-up r69475: also correct the name in RELEASE-NOTES

13 years agoFix comment. There's no tempfile function in php.
Platonides [Sun, 18 Jul 2010 13:52:30 +0000 (13:52 +0000)]
Fix comment. There's no tempfile function in php.

13 years agoFixed some doxygen warnings
Alexandre Emsenhuber [Sun, 18 Jul 2010 13:18:01 +0000 (13:18 +0000)]
Fixed some doxygen warnings

13 years agoRemoved error suppression operators (per bug 24159)
Alexandre Emsenhuber [Sun, 18 Jul 2010 13:16:18 +0000 (13:16 +0000)]
Removed error suppression operators (per bug 24159)

13 years agoFixed errors in HTML5 mode
Alexandre Emsenhuber [Sun, 18 Jul 2010 12:55:11 +0000 (12:55 +0000)]
Fixed errors in HTML5 mode

13 years ago* Modified Special:Log to extend SpecialPage
Alexandre Emsenhuber [Sun, 18 Jul 2010 12:10:39 +0000 (12:10 +0000)]
* Modified Special:Log to extend SpecialPage
* Use FormOptions

13 years ago* leftover from r69500
Danny B [Sun, 18 Jul 2010 10:11:01 +0000 (10:11 +0000)]
* leftover from r69500

13 years ago* missing messages for r68992
Danny B [Sun, 18 Jul 2010 09:56:32 +0000 (09:56 +0000)]
* missing messages for r68992

13 years agoLet Title::newFromIDs() select all fields and use Title::newFromRow() since we alread...
Alexandre Emsenhuber [Sun, 18 Jul 2010 09:36:56 +0000 (09:36 +0000)]
Let Title::newFromIDs() select all fields and use Title::newFromRow() since we already are in the "page" table

13 years agoFollow to r68544 make sure the right test recorder actually gets ran
OverlordQ [Sun, 18 Jul 2010 08:13:53 +0000 (08:13 +0000)]
Follow to r68544 make sure the right test recorder actually gets ran

13 years agoMade active users concept have some meaning by decoupling it from recent changes...
Niklas Laxström [Sun, 18 Jul 2010 07:15:27 +0000 (07:15 +0000)]
Made active users concept have some meaning by decoupling it from recent changes length.

Introduced wgActiveUserDays, which defaults to 30 days as used on wmf.
This way the number can be more easily compared between wikis.
We no longer lie to users if the actual rc length is longer than the limit.