lhc/web/wiklou.git
15 years agoForeign repos (API or DB) now fetch images and/or description pages if the repo wiki...
Chad Horohoe [Wed, 3 Dec 2008 19:30:44 +0000 (19:30 +0000)]
Foreign repos (API or DB) now fetch images and/or description pages if the repo wiki has a different canonical name for the File: namespace. Added 'fileNamespace' configuration item to $wgForeignFileRepos to override the local canonical name.

15 years ago* API: (bug 16526) Added usprop=canemail to list=users, which tells whether a user...
Roan Kattouw [Wed, 3 Dec 2008 19:07:16 +0000 (19:07 +0000)]
* API: (bug 16526) Added usprop=canemail to list=users, which tells whether a user can (and wants to be) e-mailed through [[Special:Emailuser]].
* Refactored some code to use a User object

15 years agoAPI: (bug 16516) Made rvsection=T-2 work rather than being interpreted as rvsection=0
Roan Kattouw [Wed, 3 Dec 2008 19:01:30 +0000 (19:01 +0000)]
API: (bug 16516) Made rvsection=T-2 work rather than being interpreted as rvsection=0

15 years agoThis has been moved to Database already, use that instead.
Chad Horohoe [Wed, 3 Dec 2008 16:29:12 +0000 (16:29 +0000)]
This has been moved to Database already, use that instead.

15 years agoConfigure extension - summarise hidden settings with JS! :-)
Andrew Garrett [Wed, 3 Dec 2008 06:27:46 +0000 (06:27 +0000)]
Configure extension - summarise hidden settings with JS! :-)

15 years agoTweak r44049: remove 'showEditUserGroupsForm' hook altogether
Aaron Schulz [Wed, 3 Dec 2008 06:14:15 +0000 (06:14 +0000)]
Tweak r44049: remove 'showEditUserGroupsForm' hook altogether

15 years agoBump $wgStyleVersion for r44162 and r44166
Chad Horohoe [Wed, 3 Dec 2008 02:56:29 +0000 (02:56 +0000)]
Bump $wgStyleVersion for r44162 and r44166

15 years agoTweak padding again
Aaron Schulz [Wed, 3 Dec 2008 01:07:59 +0000 (01:07 +0000)]
Tweak padding again

15 years agoEven out padding
Aaron Schulz [Wed, 3 Dec 2008 00:20:54 +0000 (00:20 +0000)]
Even out padding

15 years ago* (bug 16529) Fix for search suggestions with some third-party JS libraries
Brion Vibber [Wed, 3 Dec 2008 00:00:20 +0000 (00:00 +0000)]
* (bug 16529) Fix for search suggestions with some third-party JS libraries

Per bug "when other javascripts are included in a webpage that use event handlers, eg prototype.js, os_eventKeydown does not work (for example the arrow keys) because the keycode is undefined."

The check for window.Event seems to be for ancient Netscape 4.x stuff and might not be totally necessary... but at least checking for the *actual* thing wanted (e.keyCode vs e.which) is less prone to false positives.

(A third party JS library might create an Event class which would override the window.Event property and generally muck things up; on IE the previous check would then cause an attempt to read the key code from e.which which doesn't exist on IE.)

15 years agoMove show/hide links into the searchForm and thereby into the fieldset for consistenc...
Raimond Spekking [Tue, 2 Dec 2008 15:45:29 +0000 (15:45 +0000)]
Move show/hide links into the searchForm and thereby into the fieldset for consistency with other special page with show/hide links

15 years agofixed successive extension stripping
Daniel Kinzler [Tue, 2 Dec 2008 11:19:35 +0000 (11:19 +0000)]
fixed successive extension stripping

15 years agoCleanup to r44129, only need parseinline per ialex.
Chad Horohoe [Mon, 1 Dec 2008 21:40:43 +0000 (21:40 +0000)]
Cleanup to r44129, only need parseinline per ialex.

15 years ago(bug 16026) MediaWiki:Revision-info should accept wikimarkup
Chad Horohoe [Mon, 1 Dec 2008 21:36:20 +0000 (21:36 +0000)]
(bug 16026) MediaWiki:Revision-info should accept wikimarkup

15 years ago* (bug 12647) Allow autogenerated edit summary messages to be blanked with '-'
Brion Vibber [Mon, 1 Dec 2008 20:12:01 +0000 (20:12 +0000)]
* (bug 12647) Allow autogenerated edit summary messages to be blanked with '-'

15 years agoStep 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
Ilmari Karonen [Mon, 1 Dec 2008 17:14:30 +0000 (17:14 +0000)]
Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).

This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).

15 years agoRemove extract() comment
Aaron Schulz [Mon, 1 Dec 2008 17:02:05 +0000 (17:02 +0000)]
Remove extract() comment

15 years agoLocalisation updates for core messages from Betawiki (2008-12-01 09:20 CET)
Siebrand Mazeland [Mon, 1 Dec 2008 08:34:12 +0000 (08:34 +0000)]
Localisation updates for core messages from Betawiki (2008-12-01 09:20 CET)

15 years agoFixed minor bug where the memcached value for how many accounts an IP had
Nathaniel Herman [Sun, 30 Nov 2008 17:33:11 +0000 (17:33 +0000)]
Fixed minor bug where the memcached value for how many accounts an IP had
created that day would be increased even if $wgAccountCreationThrottle was
hit. This meant if an IP hit the throttle and then the throttle was raised
later that day, the IP still couldn't create another account, because it
had marked them as having created another account, when their last account
creation had actually failed.

15 years ago*Remove unused functions
Aaron Schulz [Sun, 30 Nov 2008 13:09:19 +0000 (13:09 +0000)]
*Remove unused functions
*Mark visibility

15 years ago* Fixed doxygen warning in Article.php and User.php
Alexandre Emsenhuber [Sun, 30 Nov 2008 10:10:15 +0000 (10:10 +0000)]
* Fixed doxygen warning in Article.php and User.php
* fix in Doxyfile

15 years agoAllow DB to be used during LocalSettings.php et al by changing plain get of global...
Andrew Garrett [Sun, 30 Nov 2008 09:44:00 +0000 (09:44 +0000)]
Allow DB to be used during LocalSettings.php et al by changing plain get of global $wgMemc to wfGetMainCache(), which will load memcached if necessary.

15 years agoRevert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
Andrew Garrett [Sun, 30 Nov 2008 03:15:22 +0000 (03:15 +0000)]
Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."

Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.

Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.

15 years ago(bug 16498) Fixed fatal error while editing old revsion of a page:
Alexandre Emsenhuber [Sat, 29 Nov 2008 22:17:53 +0000 (22:17 +0000)]
(bug 16498) Fixed fatal error while editing old revsion of a page:
Fatal error: Call to protected method Article::setOldSubtitle() from context 'EditPage' in includes/EditPage.php on line 1182

15 years ago* Modified hook UserRights::showEditUserGroupsForm to actually be able to do
Nathaniel Herman [Sat, 29 Nov 2008 20:52:14 +0000 (20:52 +0000)]
* Modified hook UserRights::showEditUserGroupsForm to actually be able to do
  something, before it was using $addable and $removable which are not used in
  the showEditUserGroupsForm function since r32610, now it uses $groups instead.
* Changed a $user->getGroups call in showEditUserGroupsForm to use $groups
  instead, the function is passed $groups, which is supposed to be an array of
  groups the user is in, so no point in getting the array again
* Removed a useless line of code in showEditUserGroupsForm
  "list( $addable, $removable ) = $this->splitGroups( $groups );"
  this was never removed from when $addable and $removable were changed to
  just $groups, and so it does nothing and is just confusing.

15 years ago* Added hook SpecialListusersGetGroups which is called right before the
Nathaniel Herman [Sat, 29 Nov 2008 19:45:10 +0000 (19:45 +0000)]
* Added hook SpecialListusersGetGroups which is called right before the
  end of UsersPager::getGroups() and can be used to add to the user's
  groups.

15 years agoRenamed PasswordReset class to SpecialResetpass and fixed an entry in SpecialUserlogi...
Alexandre Emsenhuber [Sat, 29 Nov 2008 19:42:08 +0000 (19:42 +0000)]
Renamed PasswordReset class to SpecialResetpass and fixed an entry in SpecialUserlogin.php that was not renamed in r43971.
This also caused a regression with PasswordReset extension (renaming PasswordResetForm to PasswordReset) since this extension also have a PasswordReset class

15 years agoMore doxygen fixes
Alexandre Emsenhuber [Sat, 29 Nov 2008 19:23:42 +0000 (19:23 +0000)]
More doxygen fixes

15 years ago* fixed Doxygen errors in Database.php, DatabasePostgres.php, DatabaseOracle.php...
Alexandre Emsenhuber [Sat, 29 Nov 2008 18:50:39 +0000 (18:50 +0000)]
* fixed Doxygen errors in Database.php, DatabasePostgres.php, DatabaseOracle.php and DatabaseMssql.php
* renamed \2types and \3types both to \types (with different number of param), Doxygen doesn't seem to like numbers in aliases
* Added aliases for @private, @protected and @public

15 years agoMark ImagePage::checkSharedConflictCallback() as public since it's passed to RepoGrou...
Alexandre Emsenhuber [Sat, 29 Nov 2008 17:48:37 +0000 (17:48 +0000)]
Mark ImagePage::checkSharedConflictCallback() as public since it's passed to RepoGroup as callback function

15 years agoRemove unused function
Aaron Schulz [Sat, 29 Nov 2008 16:52:10 +0000 (16:52 +0000)]
Remove unused function

15 years ago* Use insertArticleLink() to remove duplication
Aaron Schulz [Sat, 29 Nov 2008 00:17:10 +0000 (00:17 +0000)]
* Use insertArticleLink() to remove duplication
* Break some long lines

15 years agoVarious minor code style tweaks and cleanup to RC
Aaron Schulz [Fri, 28 Nov 2008 23:06:25 +0000 (23:06 +0000)]
Various minor code style tweaks and cleanup to RC

15 years agosupport more greedy params
Daniel Kinzler [Fri, 28 Nov 2008 21:32:10 +0000 (21:32 +0000)]
support more greedy params

15 years ago(bug 15695) Define 'mw-js-message' to make jsMsg() work in modern skin
Aaron Schulz [Fri, 28 Nov 2008 18:41:25 +0000 (18:41 +0000)]
(bug 15695) Define 'mw-js-message' to make jsMsg() work in modern skin

15 years agoDo the same as r41813, but for non-edit page: Display default extensions messages...
Alexandre Emsenhuber [Fri, 28 Nov 2008 18:37:31 +0000 (18:37 +0000)]
Do the same as r41813, but for non-edit page: Display default extensions messages for language subpages when the page being viewed doesn't exist

15 years ago*Remove getContent() side-effects
Aaron Schulz [Fri, 28 Nov 2008 14:29:25 +0000 (14:29 +0000)]
*Remove getContent() side-effects
*Fix/set visibility
*Refactor deletion log stuff to helper function
*Add wfDeprecated( __METHOD__ ) to some places
*Various minor cleanup/spacing

15 years ago(bug 16481) Special:Statistics does not explain what * means
Siebrand Mazeland [Fri, 28 Nov 2008 13:01:01 +0000 (13:01 +0000)]
(bug 16481) Special:Statistics does not explain what * means
* change asterisk to a tooltip image
* image is a 10px rendition of public domain image http://commons.wikimedia.org/wiki/Image:Bulbgraph.svg by RubySS

15 years agoAllow easier debugging of this module by distinguishing between the two queries
Bryan Tong Minh [Fri, 28 Nov 2008 11:36:04 +0000 (11:36 +0000)]
Allow easier debugging of this module by distinguishing between the two queries

15 years agoLocalisation updates for core messages from Betawiki (2008-11-28 10:35 CET)
Siebrand Mazeland [Fri, 28 Nov 2008 10:10:46 +0000 (10:10 +0000)]
Localisation updates for core messages from Betawiki (2008-11-28 10:35 CET)

15 years ago* Special:ImageList -> Special:FileList
Siebrand Mazeland [Fri, 28 Nov 2008 09:31:46 +0000 (09:31 +0000)]
* Special:ImageList -> Special:FileList
* Special:NewImages -> Special:NewFiles
* comments with 'image' to 'file'

15 years agoReplace "Image:" with "File:"
Siebrand Mazeland [Thu, 27 Nov 2008 23:33:54 +0000 (23:33 +0000)]
Replace "Image:" with "File:"

15 years agoReplace "{{ns:image}}" with "{{ns:file}}" for core messages
Siebrand Mazeland [Thu, 27 Nov 2008 22:59:08 +0000 (22:59 +0000)]
Replace "{{ns:image}}" with "{{ns:file}}" for core messages

15 years agoLocalisation updates for core messages from Betawiki (2008-11-27 23:40 CET)
Siebrand Mazeland [Thu, 27 Nov 2008 22:46:44 +0000 (22:46 +0000)]
Localisation updates for core messages from Betawiki (2008-11-27 23:40 CET)

15 years agoFirst step in replacing NS_IMAGE with NS_FILE, to match the canonical name change...
Ilmari Karonen [Thu, 27 Nov 2008 22:36:25 +0000 (22:36 +0000)]
First step in replacing NS_IMAGE with NS_FILE, to match the canonical name change (bug 44).

This step simply defines the new constants NS_FILE and NS_FILE_TALK, retaining NS_IMAGE and NS_IMAGE_TALK as aliases, and makes them usable for export (which seems to be the only part of core that uses the NS_* names as strings).

The second step should be a global search-and-replace across core (other than Defines.php and Export.php).  I've already tried this locally, and there seem to be no problems.  This step should not touch extensions.

The third, optional step would be updating at least some extensions to use the new constant names as well.  This would generally require prepending the following compatibility snippet to the main extension file:

// The names NS_FILE and NS_FILE_TALK are new in MediaWiki v1.14
if( !defined('NS_FILE') || !defined('NS_FILE_TALK') ) {
define('NS_FILE', NS_IMAGE);
define('NS_FILE_TALK', NS_IMAGE_TALK);
}

15 years ago(bug 15892) kluge: disable use of temporary tables for parserTests until someone...
Ilmari Karonen [Thu, 27 Nov 2008 21:22:21 +0000 (21:22 +0000)]
(bug 15892) kluge: disable use of temporary tables for parserTests until someone can figure out a way to make them work again

15 years ago(bug 44) make 'Image' and 'Image_talk' compatibility aliases work for all languages...
Ilmari Karonen [Thu, 27 Nov 2008 20:27:05 +0000 (20:27 +0000)]
(bug 44) make 'Image' and 'Image_talk' compatibility aliases work for all languages, not just English

15 years ago(bug 6100) Strip Unicode BiDi embedding/override characters (U+202A - U+202E) from...
Ilmari Karonen [Thu, 27 Nov 2008 20:11:38 +0000 (20:11 +0000)]
(bug 6100) Strip Unicode BiDi embedding/override characters (U+202A - U+202E) from titles.
NOTE: run maintenance/cleanupImages.php and cleanupTitles.php ASAP after deploying this!

15 years agoReduce excessive RC write queries
Aaron Schulz [Thu, 27 Nov 2008 18:55:47 +0000 (18:55 +0000)]
Reduce excessive RC write queries

15 years agoAdd $user to NewRevisionFromEditComplete hook
Aaron Schulz [Thu, 27 Nov 2008 18:32:29 +0000 (18:32 +0000)]
Add $user to NewRevisionFromEditComplete hook

15 years agoimage import new supports per-image description files
Daniel Kinzler [Thu, 27 Nov 2008 13:07:30 +0000 (13:07 +0000)]
image import new supports per-image description files

15 years ago(bug 16445) add info if accounts are not sul accounts to cu results
Aaron Schulz [Thu, 27 Nov 2008 07:45:08 +0000 (07:45 +0000)]
(bug 16445) add info if accounts are not sul accounts to cu results

15 years agoFollow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.
Siebrand Mazeland [Wed, 26 Nov 2008 23:17:15 +0000 (23:17 +0000)]
Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.

15 years agoMake returnto parameter work as well with cookieRedirect
Bryan Tong Minh [Wed, 26 Nov 2008 19:22:29 +0000 (19:22 +0000)]
Make returnto parameter work as well with cookieRedirect

15 years agoPer r43967: Bump $wgStyleVersion
Raimond Spekking [Wed, 26 Nov 2008 13:21:25 +0000 (13:21 +0000)]
Per r43967: Bump $wgStyleVersion

15 years agoOpp, add this bit back
Aaron Schulz [Wed, 26 Nov 2008 03:41:28 +0000 (03:41 +0000)]
Opp, add this bit back

15 years agoCleanup for r43841:
Aaron Schulz [Wed, 26 Nov 2008 03:37:11 +0000 (03:37 +0000)]
Cleanup for r43841:
* Fix odd invocation to use the normal extend method for pages
* Add passwordaudit hooks
* Fix specialpage member variable collision

15 years ago* Added complimentary function for addHandler() called removeHandler() for removing...
Ryan Schmidt [Wed, 26 Nov 2008 02:55:24 +0000 (02:55 +0000)]
* Added complimentary function for addHandler() called removeHandler() for removing events

15 years agofix regression from r43965 -- forgot the .png extension from math URLs, which works...
Brion Vibber [Wed, 26 Nov 2008 02:37:07 +0000 (02:37 +0000)]
fix regression from r43965 -- forgot the .png extension from math URLs, which works on my apache install but not on the live upload server :P

15 years agoFollow-up to r43964 (bug 16440)
Brion Vibber [Wed, 26 Nov 2008 02:28:15 +0000 (02:28 +0000)]
Follow-up to r43964 (bug 16440)
* Purge newly rendered math images from squids, so any old bad versions get purged out
* Don't save entries that were 0-byte files

15 years ago* (bug 16440) Broken 0-byte math renderings are now deleted and re-rendered when...
Brion Vibber [Wed, 26 Nov 2008 02:13:40 +0000 (02:13 +0000)]
* (bug 16440) Broken 0-byte math renderings are now deleted and re-rendered  when page is re-parsed.

15 years agoRefactor Special:Import to extend SpecialPage instead of wfSpecialImport() stuff.
Chad Horohoe [Wed, 26 Nov 2008 02:10:56 +0000 (02:10 +0000)]
Refactor Special:Import to extend SpecialPage instead of wfSpecialImport() stuff.

15 years agoFix RELEASE-NOTES for r43944.
Siebrand Mazeland [Tue, 25 Nov 2008 21:00:30 +0000 (21:00 +0000)]
Fix RELEASE-NOTES for r43944.

15 years agoSub pages get a redirect on move, even when "Leave a redirect behind" is checked...
Siebrand Mazeland [Tue, 25 Nov 2008 20:57:29 +0000 (20:57 +0000)]
Sub pages get a redirect on move, even when "Leave a redirect behind" is checked. Fixed.

15 years agoAs brought up in bug 16374, the parserTests seem to only want parsertest_ as the...
Chad Horohoe [Tue, 25 Nov 2008 20:39:05 +0000 (20:39 +0000)]
As brought up in bug 16374, the parserTests seem to only want parsertest_ as the dbprefix. If we're going to do that, lets make the PHPUnit tests consistent and use the same test prefix.

15 years agoLet's try limiting the language object cache... see if that fixes our problem with...
Brion Vibber [Tue, 25 Nov 2008 19:38:22 +0000 (19:38 +0000)]
Let's try limiting the language object cache... see if that fixes our problem with centralnotice all-languages preview running out of ram

15 years ago* Follow-up to r43656 -- rename the use of a function when you rename it!
Brion Vibber [Tue, 25 Nov 2008 18:26:21 +0000 (18:26 +0000)]
* Follow-up to r43656 -- rename the use of a function when you rename it!
* Follow-up to r43655 -- $clientWidth/$clientHeight were used in error generation, no longer exist in the breakout function

15 years agoLocalisation updates for core messages from Betawiki (2008-11-25 10:55 CET)
Siebrand Mazeland [Tue, 25 Nov 2008 10:28:25 +0000 (10:28 +0000)]
Localisation updates for core messages from Betawiki (2008-11-25 10:55 CET)

15 years agolist right bug number
Brion Vibber [Tue, 25 Nov 2008 02:44:05 +0000 (02:44 +0000)]
list right bug number

15 years ago* (bug 5477) Searches for words less than 4 characters now work without
Brion Vibber [Tue, 25 Nov 2008 02:39:06 +0000 (02:39 +0000)]
* (bug 5477) Searches for words less than 4 characters now work without
  requiring customization of MySQL server settings

Short words are padded so they now get indexed. Yay!

Adapted part of Werdna's patch, with some additional cleanup:
* Using 'U00' to pad instead of 'SMALL' to reduce false positives (eg search for "small*" could match "Smallville" and "SMALLc")
* Checking server's ft_min_word_len variable to see if we need to do anything. This preserves index compatibility with existing installations which have customized their index length.
* Some further cleanup on redundant code -- just toss everything through lc() and be done with it :D
* Cleaned out some more evals in zh and yue classes :P
* Fixed yue class to call the parent adjustor properly

15 years agoDrop 'locale' directory, not actually used by MediaWiki and it confuses people.
Brion Vibber [Mon, 24 Nov 2008 21:32:46 +0000 (21:32 +0000)]
Drop 'locale' directory, not actually used by MediaWiki and it confuses people.

15 years ago* Add guard exception in OutputPage::parse() for failure case where $wgTitle is null...
Brion Vibber [Mon, 24 Nov 2008 01:58:15 +0000 (01:58 +0000)]
* Add guard exception in OutputPage::parse() for failure case where $wgTitle is null; that causes a fatal error which doesn't show a backtrace if we don't catch it here.
* Temporarily set $wgTitle while doing article creation/edit updates during XML import. A null $wgTitle as in importDump.php caused a fatal error when special pages were transcluded if they did any parsing via OutputPage::parse()

15 years ago* Remove project+main search to reduce clutter
Aaron Schulz [Sun, 23 Nov 2008 16:18:06 +0000 (16:18 +0000)]
* Remove project+main search to reduce clutter
* Tweak search messages

15 years ago* I didn't even notice the extra reblock check; merged this into submit button with...
Aaron Schulz [Sun, 23 Nov 2008 09:52:29 +0000 (09:52 +0000)]
* I didn't even notice the extra reblock check; merged this into submit button with hidden input.
* Break long line
* (bug 16436) Don't log if nothing changed

15 years agoAdded missing devs
Alexandre Emsenhuber [Sat, 22 Nov 2008 22:00:28 +0000 (22:00 +0000)]
Added missing devs

15 years agoAPI: (bug 16421) Actually do user name normalization in list=logevents. Also fix...
Roan Kattouw [Sat, 22 Nov 2008 15:46:36 +0000 (15:46 +0000)]
API: (bug 16421) Actually do user name normalization in list=logevents. Also fix up User::idFromName so it doesn't think "Talk:Catrope" isn't the same user as "Catrope"

15 years agofix double escaping
Alexandre Emsenhuber [Sat, 22 Nov 2008 15:23:21 +0000 (15:23 +0000)]
fix double escaping

15 years agoAPI wants namespaces to be separated with a pipe, not a comma
Alexandre Emsenhuber [Sat, 22 Nov 2008 11:35:01 +0000 (11:35 +0000)]
API wants namespaces to be separated with a pipe, not a comma

15 years agoLocalisation updates for core messages from Betawiki (2008-11-22 11:16 CET)
Siebrand Mazeland [Sat, 22 Nov 2008 10:23:24 +0000 (10:23 +0000)]
Localisation updates for core messages from Betawiki (2008-11-22 11:16 CET)

15 years agoLocalization update.
Rotem Liss [Sat, 22 Nov 2008 09:31:37 +0000 (09:31 +0000)]
Localization update.

15 years agoSet numeric_version more globally so things like search don't break.
Greg Sabino Mullane [Sat, 22 Nov 2008 06:49:16 +0000 (06:49 +0000)]
Set numeric_version more globally so things like search don't break.

15 years agoAdd CASCADE back in: better to break older Postgres versions than new ones.
Greg Sabino Mullane [Sat, 22 Nov 2008 06:44:45 +0000 (06:44 +0000)]
Add CASCADE back in: better to break older Postgres versions than new ones.
Per bug 16256

15 years agoSet numeric_version
Greg Sabino Mullane [Sat, 22 Nov 2008 06:40:46 +0000 (06:40 +0000)]
Set numeric_version

15 years agoNeed to bail without error if no user so installer works.
Greg Sabino Mullane [Sat, 22 Nov 2008 06:39:55 +0000 (06:39 +0000)]
Need to bail without error if no user so installer works.

15 years agoMove password resetting out of Special:Preferences, adapt Special:ResetPass to do...
Alex Z [Sat, 22 Nov 2008 05:03:14 +0000 (05:03 +0000)]
Move password resetting out of Special:Preferences, adapt Special:ResetPass to do the job, add Special:ChangePassword as an alias.

15 years ago* Dropped old Paser_OldPP class. Only new parser with preprocessor is used.
Brion Vibber [Fri, 21 Nov 2008 22:47:51 +0000 (22:47 +0000)]
* Dropped old Paser_OldPP class. Only new parser with preprocessor is used.
Death to the old parser! Long live the preprocessor!

15 years agoLocalization update and fixes.
Rotem Liss [Fri, 21 Nov 2008 19:00:48 +0000 (19:00 +0000)]
Localization update and fixes.

15 years agoAlso update default for block page to Special:Block, and add alias BlockUser. That...
Siebrand Mazeland [Fri, 21 Nov 2008 18:20:28 +0000 (18:20 +0000)]
Also update default for block page to Special:Block, and add alias BlockUser. That MZMcBride is a persistent little bugger :P

15 years agoMake special pages names for Special:MostLinked* consisted. Pointed out by MZMcBride
Siebrand Mazeland [Fri, 21 Nov 2008 18:13:46 +0000 (18:13 +0000)]
Make special pages names for Special:MostLinked* consisted. Pointed out by MZMcBride

15 years agoRevert r43788 and r43788 (adding findBySha1 functionality). Something is breaking...
Chad Horohoe [Fri, 21 Nov 2008 17:45:57 +0000 (17:45 +0000)]
Revert r43788 and r43788 (adding findBySha1 functionality). Something is breaking here and I don't know what...

15 years agoAPI: (bug 16408) Added DOM tree generation (rvgeneratexml) to prop=revisions. Looks...
Roan Kattouw [Fri, 21 Nov 2008 13:55:27 +0000 (13:55 +0000)]
API: (bug 16408) Added DOM tree generation (rvgeneratexml) to prop=revisions. Looks kind of ugly in XML, but bots don't care about that, and people should use less crappy-looking formats anyway.

15 years agoAdd comment per wikitech-l thread
Aryeh Gregor [Fri, 21 Nov 2008 13:20:27 +0000 (13:20 +0000)]
Add comment per wikitech-l thread

15 years agoTurn wfMkdirParents() into just a thin wrapper around mkdir( $dir, $mode, true )...
Ilmari Karonen [Fri, 21 Nov 2008 12:52:36 +0000 (12:52 +0000)]
Turn wfMkdirParents() into just a thin wrapper around mkdir( $dir, $mode, true ); this won't work in PHP4, but we don't support that, do we?

NOTE: the old code used to ignore the umask by explicitly forcing the permissions with chmod().  If this is desired behavior, it can be achieved by temporarily setting the umask to 0, as in:

$oldmask = umask( 0 );
$rv = mkdir( $dir, $mode, true );
umask( $oldmask );
return $rv;

However, I can't see why we'd want to do this.  In the worst case, users with excessively tight umasks can find themselves with unusable directories, but the proper solution to that is to fix the umask rather than to
ignore it.  In the best case, we've just plugged a security hole the user didn't realize they had (because they assumed their umask would Just Work).

15 years agoReplace mkdir() in favor of wfMkdirParents():
Chad Horohoe [Fri, 21 Nov 2008 11:34:09 +0000 (11:34 +0000)]
Replace mkdir() in favor of wfMkdirParents():
* It handles directory modes for us (rather than hardcode 0777)
* It handles recursion for us

15 years agoRevert r43804 'This should probably be in Response, not Request, as we're setting...
Aaron Schulz [Fri, 21 Nov 2008 09:55:13 +0000 (09:55 +0000)]
Revert r43804 'This should probably be in Response, not Request, as we're setting data, not getting it. Nothing's using it yet (fairly new), so nothing to update.'

Session id is used by client request to specify its login data from cookie, so the session data, by extensions, is like a sort of request parameter. Also, WebResponse.php seems to be used for data actually sent to the client, like requested cookies.

15 years agoRevert r43785 (switching hardcoded Image: to loading the canonical name). This causes...
Chad Horohoe [Fri, 21 Nov 2008 09:24:57 +0000 (09:24 +0000)]
Revert r43785 (switching hardcoded Image: to loading the canonical name). This causes an interesting regression...trunk cannot use this with an API below r43639 (when Image was renamed to File), as File:Someimage.ext doesn't make sense to these wikis. Keeping it hardcoded might be best, if Image is in fact remaining an alias to File.

15 years agoThis should probably be in Response, not Request, as we're setting data, not getting...
Chad Horohoe [Fri, 21 Nov 2008 09:01:26 +0000 (09:01 +0000)]
This should probably be in Response, not Request, as we're setting data, not getting it. Nothing's using it yet (fairly new), so nothing to update.

15 years ago(bug 8702) Refactor stats updating in nukePage. Now updates edit count and good artic...
Chad Horohoe [Fri, 21 Nov 2008 06:46:31 +0000 (06:46 +0000)]
(bug 8702) Refactor stats updating in nukePage. Now updates edit count and good article count, not just total page count.

15 years agoalso fix image names with magic tildes in them, got a few on enwiki
Ilmari Karonen [Fri, 21 Nov 2008 06:08:31 +0000 (06:08 +0000)]
also fix image names with magic tildes in them, got a few on enwiki

15 years agoClean up image titles with HTML entities (made invalid in r28968). Also misc. improv...
Ilmari Karonen [Fri, 21 Nov 2008 04:54:47 +0000 (04:54 +0000)]
Clean up image titles with HTML entities (made invalid in r28968).  Also misc. improvements: fail gracefully if buildSafeTitle() fails, move description page and old image revisions too.