lhc/web/wiklou.git
18 years ago* Fixed bug, $this->mBaseRegex would contain an invalid regular expression if
Ævar Arnfjörð Bjarmason [Sun, 8 Jan 2006 04:25:43 +0000 (04:25 +0000)]
* Fixed bug, $this->mBaseRegex would contain an invalid regular expression if
  the supplied magic word synonyms contained /, of course none of them do, but
  hey;)

18 years agoSome information about database access in MediaWiki.
Tim Starling [Sun, 8 Jan 2006 03:50:37 +0000 (03:50 +0000)]
Some information about database access in MediaWiki.

18 years ago* New function: User::getBoolOption() that wraps User::getOption, casts its
Ævar Arnfjörð Bjarmason [Sun, 8 Jan 2006 03:40:48 +0000 (03:40 +0000)]
* New function: User::getBoolOption() that wraps User::getOption, casts its
  output to bool and returns it
* Documentation: Documented User::getBoolOption() and User::getOption()

18 years ago* Fixed bugs introduced in revision 1.566 by avar (see, I can make them too!)
Ævar Arnfjörð Bjarmason [Sun, 8 Jan 2006 03:39:26 +0000 (03:39 +0000)]
* Fixed bugs introduced in revision 1.566 by avar (see, I can make them too!)
  - User::getOption() doesn't return bool, as a result all signitures were
    fancy, just use User::getBoolOption()
* Fixed stuff introduced in revision 1.564 by rob
  - User::getOption() output is pre-trimmed, no need for double-trimming
  - == => ===
  - the ternary op takes precedence over =, -()

18 years ago* Fixed bugs introduced in revision 1.155 by rob ;)
Ævar Arnfjörð Bjarmason [Sun, 8 Jan 2006 03:12:54 +0000 (03:12 +0000)]
* Fixed bugs introduced in revision 1.155 by rob ;)
  - Using $x === false, if ($x) is a logic error in this case because PHP
    thinks (among other things) that (int)0 and (string)0 are false, so a
custom signiture that was "0" would fail

18 years ago* Fixed bugs introduced in revision 1.564 by rob ;)
Ævar Arnfjörð Bjarmason [Sun, 8 Jan 2006 03:09:31 +0000 (03:09 +0000)]
* Fixed bugs introduced in revision 1.564 by rob ;)
  - Changed back to using if $x === false, if ($x) is a logic error in this
    case because PHP thinks (among other things) that (int)0 and (string)0 are
false, so a custom signiture that was "0" would fail
  - $nick was changed to $nickname in 1.564 in most places, but not all, as a
    result no fancy signiture worked (feature?;) and php vomited E_NOTICE
  - $name => $username, same thing as above, variable name change where not all
    of them were changed resulting in E_NOTICE etc. etc.

18 years agoUse wfGetDB(DB_SLAVE) when appropriate. Changed deletion summary autogeneration to...
Tim Starling [Sun, 8 Jan 2006 01:25:50 +0000 (01:25 +0000)]
Use wfGetDB(DB_SLAVE) when appropriate. Changed deletion summary autogeneration to make it cheaper and more slave-friendly.

18 years agoRemove bizarre typo, because Nixlas Laxstr�m complained.
Rob Church [Sun, 8 Jan 2006 01:08:16 +0000 (01:08 +0000)]
Remove bizarre typo, because Nixlas Laxstr�m complained.

18 years ago* Reverting ->getDB() => wfGetDB() in 1.434, not replication-safe
Ævar Arnfjörð Bjarmason [Sun, 8 Jan 2006 00:44:07 +0000 (00:44 +0000)]
* Reverting ->getDB() => wfGetDB() in 1.434, not replication-safe

18 years ago* Change order of things in pre-save transform, so that the forced substitution in...
Rob Church [Sat, 7 Jan 2006 23:37:40 +0000 (23:37 +0000)]
* Change order of things in pre-save transform, so that the forced substitution in cleaned signatures will *do something*
* Remove now-redundant message from Language.php
* Improve signature validation in user preferences; poor XML causes the user to be screamed at; signatures still silent-cleaned upon changing

18 years agorm. redundant function
Rob Church [Sat, 7 Jan 2006 23:14:04 +0000 (23:14 +0000)]
rm. redundant function

18 years agoDo a silent cleanup of the signature on change
Rob Church [Sat, 7 Jan 2006 23:13:16 +0000 (23:13 +0000)]
Do a silent cleanup of the signature on change

18 years agoCleanup signature handling
Rob Church [Sat, 7 Jan 2006 23:09:21 +0000 (23:09 +0000)]
Cleanup signature handling

* Introduce a function to cleanup signatures [currently strips out ~~~, ~~~~ and ~~~~~, and forces transclusions to be substituted]
* Cleanup Parser::getUserSig()
* Minor cleanup on Parser::validateSig()

18 years agoFix for bug 2522
Magnus Manske [Sat, 7 Jan 2006 22:33:54 +0000 (22:33 +0000)]
Fix for bug 2522

18 years ago* Protect against spoofing of X-Forwarded-For header
Brion Vibber [Sat, 7 Jan 2006 21:44:10 +0000 (21:44 +0000)]
* Protect against spoofing of X-Forwarded-For header

18 years ago* Wikipedia => MediaWiki in $wgPasswordSender
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 14:41:46 +0000 (14:41 +0000)]
* Wikipedia => MediaWiki in $wgPasswordSender
* $wgPutIPinRC = true (was false), why is this even an option?

18 years agoUse the new templatelinks table. The special page assume that the template
Antoine Musso [Sat, 7 Jan 2006 14:25:58 +0000 (14:25 +0000)]
Use the new templatelinks table. The special page assume that the template
to mark disambiguation page is in the template namespace.

18 years agoFix #4504: Use site language for namespace name resolution
Antoine Musso [Sat, 7 Jan 2006 13:36:19 +0000 (13:36 +0000)]
Fix #4504: Use site language for namespace name resolution

18 years ago* s~\t+$~~
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 13:31:29 +0000 (13:31 +0000)]
* s~\t+$~~

18 years agoFix #4510: Barnes & Noble ISBN URL change
Antoine Musso [Sat, 7 Jan 2006 13:18:32 +0000 (13:18 +0000)]
Fix #4510: Barnes & Noble ISBN URL change

18 years agofix logic, accounts were always deleted!
Antoine Musso [Sat, 7 Jan 2006 13:11:17 +0000 (13:11 +0000)]
fix logic, accounts were always deleted!

18 years ago* s~ +$~~
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 13:09:30 +0000 (13:09 +0000)]
* s~ +$~~

18 years ago* Documentation: @private => @access private
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 12:48:44 +0000 (12:48 +0000)]
* Documentation: @private => @access private

18 years agoCode review!
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 12:31:39 +0000 (12:31 +0000)]
Code review!
* Don't start a new scope with if defined 'MEDIAWIKI...

18 years agoCode review!
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 12:25:36 +0000 (12:25 +0000)]
Code review!
* Don't start a new scope with if defined 'MEDIAWIKI...

18 years agoCode review!
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 12:17:42 +0000 (12:17 +0000)]
Code review!
* Don't start a new scope with if ! defined 'MEDIAWIKI...

18 years agoCode review!
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 12:10:04 +0000 (12:10 +0000)]
Code review!
* Marked &getDB() as deprecated and replaced some calls of it with calls to wfGetDB( DB_SLAVE ), no more calling the master for ro queries
* -@public, redundant, everything is by default
* @private => @access private
* Documented paramaters / return values
* ' . ' => nothing
* Removed dead code
* Rewrote the isCountable() function to return bool and fixed everything that calls it appropriately

18 years ago* Forgot to remove this line in the last commit, breaking the parser...
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 09:19:38 +0000 (09:19 +0000)]
* Forgot to remove this line in the last commit, breaking the parser...

18 years ago* Replacing custom escaping code with a call to Sanitizer::escapeId()
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 09:13:38 +0000 (09:13 +0000)]
* Replacing custom escaping code with a call to Sanitizer::escapeId()

18 years ago* (bug 4515) New test: "Sanitizer: Validating the contents of the id attribute"
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 09:11:53 +0000 (09:11 +0000)]
* (bug 4515) New test: "Sanitizer: Validating the contents of the id attribute"

18 years ago* (bug 4461) Encode characters specified in the id attribute properly
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 08:50:07 +0000 (08:50 +0000)]
* (bug 4461) Encode characters specified in the id attribute properly
* Documentation: (X)HTML => XHTML
* Formatting

18 years ago* (bug 4461) New test: 'Sanitizer: Escaping of spaces, multibyte characters, colons...
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 08:34:39 +0000 (08:34 +0000)]
* (bug 4461) New test: 'Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""'

18 years ago* Documentation
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 05:15:49 +0000 (05:15 +0000)]
* Documentation

18 years ago* (bug 4373) Parsertest
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 04:58:22 +0000 (04:58 +0000)]
* (bug 4373) Parsertest
* Parsertests for the sanitizer

18 years ago* (bug 4373) Escape < and > in input like "foo</td></tr></table>" (only escaped the...
Ævar Arnfjörð Bjarmason [Sat, 7 Jan 2006 04:57:38 +0000 (04:57 +0000)]
* (bug 4373) Escape < and > in input like "foo</td></tr></table>" (only escaped the last two previously)

18 years agooops
Tim Starling [Sat, 7 Jan 2006 00:49:23 +0000 (00:49 +0000)]
oops

18 years agoFixed broken image registration, by making Parser::renderImageGallery() non-static...
Tim Starling [Sat, 7 Jan 2006 00:44:28 +0000 (00:44 +0000)]
Fixed broken image registration, by making Parser::renderImageGallery() non-static. This method is possible because it does not appear to be called from outside Parser anymore.

18 years agoremoved useless line
Tim Starling [Sat, 7 Jan 2006 00:37:35 +0000 (00:37 +0000)]
removed useless line

18 years agoRemove hack now bug 4511 is fixed
Rob Church [Sat, 7 Jan 2006 00:15:03 +0000 (00:15 +0000)]
Remove hack now bug 4511 is fixed

18 years agoRemoving:
Niklas Laxström [Sat, 7 Jan 2006 00:06:05 +0000 (00:06 +0000)]
Removing:
*invalid comment
*some wikipedia-references
*bad or unnecessary html
*wrong usage of {{SITENAME}} variable
*some obsolote messages or messages that should not be redefined

18 years agoOh my godness, the whole namespace array was typoed(?) Ky instead of Ku
Niklas Laxström [Fri, 6 Jan 2006 23:33:59 +0000 (23:33 +0000)]
Oh my godness, the whole namespace array was typoed(?) Ky instead of Ku
Removing some old cow food (obsolote messages)

18 years agoPrevent blocked users from changing page protection levels
Rob Church [Fri, 6 Jan 2006 23:25:26 +0000 (23:25 +0000)]
Prevent blocked users from changing page protection levels

18 years agoPrevent blocked users from using delete and undelete
Rob Church [Fri, 6 Jan 2006 23:21:38 +0000 (23:21 +0000)]
Prevent blocked users from using delete and undelete

18 years agoHow did this get here in the first place?
Niklas Laxström [Fri, 6 Jan 2006 23:20:16 +0000 (23:20 +0000)]
How did this get here in the first place?
Removing crap.

18 years ago* Move the "user is blocked" page to OutputPage
Rob Church [Fri, 6 Jan 2006 23:09:37 +0000 (23:09 +0000)]
* Move the "user is blocked" page to OutputPage
* Disallow users to use rollback when blocked

18 years agoUnbreaking some updatedmarker translations
Niklas Laxström [Fri, 6 Jan 2006 22:43:13 +0000 (22:43 +0000)]
Unbreaking some updatedmarker translations
-updatedmarker is plain text surrounded by span class=updatedmarker

18 years agoI guess this is missing require_once
Niklas Laxström [Fri, 6 Jan 2006 22:21:41 +0000 (22:21 +0000)]
I guess this is missing require_once

18 years agohtml fixes, minimizing markup.
Niklas Laxström [Fri, 6 Jan 2006 21:54:59 +0000 (21:54 +0000)]
html fixes, minimizing markup.
I'm sure I've done all this before.

18 years ago* (bug 4507) Adjust FULLPAGENAMEE escaping to standard form
Brion Vibber [Fri, 6 Jan 2006 21:03:50 +0000 (21:03 +0000)]
* (bug 4507) Adjust FULLPAGENAMEE escaping to standard form

18 years agoPrevent accidental deletion during page move.
Tim Starling [Fri, 6 Jan 2006 12:50:37 +0000 (12:50 +0000)]
Prevent accidental deletion during page move.

18 years ago* Cleanup main code
Rob Church [Thu, 5 Jan 2006 23:52:18 +0000 (23:52 +0000)]
* Cleanup main code
* Correct a couple of major oversights in the commenting (no, they aren't arrays of User objects, that would be mad, and to what avail?)

18 years agoformatNum in Russian translation
Alexander Sigachov [Thu, 5 Jan 2006 23:51:02 +0000 (23:51 +0000)]
formatNum in Russian translation

18 years agoRussian translation update to Language.php 1.772
Alexander Sigachov [Thu, 5 Jan 2006 23:36:17 +0000 (23:36 +0000)]
Russian translation update to Language.php 1.772

18 years agoWMF vulnerability
Tim Starling [Thu, 5 Jan 2006 23:32:17 +0000 (23:32 +0000)]
WMF vulnerability

18 years ago* 80 chars width
Antoine Musso [Thu, 5 Jan 2006 23:21:32 +0000 (23:21 +0000)]
* 80 chars width
* comments functions using phpdoc format

18 years ago* use the $option system
Antoine Musso [Thu, 5 Jan 2006 23:16:11 +0000 (23:16 +0000)]
* use the $option system
* add '--help' (and die after showing the message)
* clean up parameter handling a bit

18 years agoprettify link
Brion Vibber [Thu, 5 Jan 2006 15:07:46 +0000 (15:07 +0000)]
prettify link

18 years ago* (bug 4334) Add "watch" links to Special:Unwatchedpages
Rob Church [Thu, 5 Jan 2006 14:50:35 +0000 (14:50 +0000)]
* (bug 4334) Add "watch" links to Special:Unwatchedpages

18 years agoAllow + in titles
Tim Starling [Thu, 5 Jan 2006 05:27:16 +0000 (05:27 +0000)]
Allow + in titles

18 years agoremoved $wgParserCache, converted to a singleton
Tim Starling [Thu, 5 Jan 2006 04:26:52 +0000 (04:26 +0000)]
removed $wgParserCache, converted to a singleton

18 years agoFound RCCacheEntry crying, looking for its mummy. Happy reunion with EnhancedChangesList.
Tim Starling [Thu, 5 Jan 2006 04:11:27 +0000 (04:11 +0000)]
Found RCCacheEntry crying, looking for its mummy. Happy reunion with EnhancedChangesList.

18 years agoRemoved $wgLinkCache, converted to a singleton. Removed obsolete cruft from LinkCache...
Tim Starling [Thu, 5 Jan 2006 02:05:53 +0000 (02:05 +0000)]
Removed $wgLinkCache, converted to a singleton. Removed obsolete cruft from LinkCache.php.

18 years ago* Sorted $wgAvailableRights
Ævar Arnfjörð Bjarmason [Thu, 5 Jan 2006 01:03:22 +0000 (01:03 +0000)]
* Sorted $wgAvailableRights
* Added unwatchedpages to $wgAvailableRights (see http://mail.wikimedia.org/pipermail/wikitech-l/2006-January/033427.html)

18 years agogave LinkBatch its own file
Tim Starling [Wed, 4 Jan 2006 23:53:51 +0000 (23:53 +0000)]
gave LinkBatch its own file

18 years ago* (bug 4486) Minor updates
Ævar Arnfjörð Bjarmason [Wed, 4 Jan 2006 23:52:57 +0000 (23:52 +0000)]
* (bug 4486) Minor updates

18 years agosome tweaks, by brion
Tim Starling [Wed, 4 Jan 2006 23:29:04 +0000 (23:29 +0000)]
some tweaks, by brion

18 years agocurrent directory is not reliable
Tim Starling [Wed, 4 Jan 2006 23:26:31 +0000 (23:26 +0000)]
current directory is not reliable

18 years agoYes, really world writeable
Tim Starling [Wed, 4 Jan 2006 23:24:25 +0000 (23:24 +0000)]
Yes, really world writeable

18 years agoMore robust include directory determination. Don't call wfDebug unless it is defined.
Tim Starling [Wed, 4 Jan 2006 23:21:21 +0000 (23:21 +0000)]
More robust include directory determination. Don't call wfDebug unless it is defined.

18 years agoMore robust include directory determination
Tim Starling [Wed, 4 Jan 2006 23:20:11 +0000 (23:20 +0000)]
More robust include directory determination

18 years agoMoved stub profiling functions to their own file
Tim Starling [Wed, 4 Jan 2006 23:17:35 +0000 (23:17 +0000)]
Moved stub profiling functions to their own file

18 years agoSimpler structure for wgLocalDatabases, for faster setup. SiteConfiguration::getAll...
Tim Starling [Wed, 4 Jan 2006 22:48:35 +0000 (22:48 +0000)]
Simpler structure for wgLocalDatabases, for faster setup. SiteConfiguration::getAll() to get all settings as an array

18 years agoIgnore negative lag
Tim Starling [Wed, 4 Jan 2006 22:45:55 +0000 (22:45 +0000)]
Ignore negative lag

18 years agoTweak script to allow just reporting of the number of inactive accounts
Rob Church [Wed, 4 Jan 2006 13:02:04 +0000 (13:02 +0000)]
Tweak script to allow just reporting of the number of inactive accounts

18 years agoMention the delete unused accounts script
Rob Church [Wed, 4 Jan 2006 12:45:15 +0000 (12:45 +0000)]
Mention the delete unused accounts script

18 years agoMaintenance script to delete unused accounts
Rob Church [Wed, 4 Jan 2006 12:33:45 +0000 (12:33 +0000)]
Maintenance script to delete unused accounts

18 years agoinclude templatelinks table
Brion Vibber [Wed, 4 Jan 2006 00:33:22 +0000 (00:33 +0000)]
include templatelinks table

18 years ago* (bug 4453) fix for __TOC__ dollar-number breakage
Brion Vibber [Wed, 4 Jan 2006 00:27:48 +0000 (00:27 +0000)]
* (bug 4453) fix for __TOC__ dollar-number breakage

18 years ago* Formatting: -whitespace
Ævar Arnfjörð Bjarmason [Wed, 4 Jan 2006 00:25:46 +0000 (00:25 +0000)]
* Formatting: -whitespace

18 years agocheck if wgProfiler is defined before checking if it is an object
Domas Mituzas [Tue, 3 Jan 2006 23:38:13 +0000 (23:38 +0000)]
check if wgProfiler is defined before checking if it is an object
define wfProfileIn/Out only if it was not defined before

18 years ago* (bug 4446) $wgExportAllowHistory option to explicitly disable history in
Brion Vibber [Tue, 3 Jan 2006 23:32:39 +0000 (23:32 +0000)]
* (bug 4446) $wgExportAllowHistory option to explicitly disable history in
  Special:Export form, 'exportnohistory' message to translate live hack.

18 years agoSpot of code optimisation
Rob Church [Tue, 3 Jan 2006 21:37:09 +0000 (21:37 +0000)]
Spot of code optimisation

18 years agoRevert 'user files' link; the support for it was already reverted.
Brion Vibber [Tue, 3 Jan 2006 21:18:58 +0000 (21:18 +0000)]
Revert 'user files' link; the support for it was already reverted.
Done properly this would need a new index; it should not be done on Newimages, which is time-sorted.

18 years ago* (bug 3194) default implementation of translateBlockExpiry which uses ipboptions
Niklas Laxström [Tue, 3 Jan 2006 20:59:19 +0000 (20:59 +0000)]
* (bug 3194) default implementation of translateBlockExpiry which uses ipboptions

18 years agoFixed wrongly translated ipboptions and few markup issues
Niklas Laxström [Tue, 3 Jan 2006 20:12:13 +0000 (20:12 +0000)]
Fixed wrongly translated ipboptions and few markup issues

18 years agoFix a comment glitch and add one that's missing
Rob Church [Tue, 3 Jan 2006 15:58:14 +0000 (15:58 +0000)]
Fix a comment glitch and add one that's missing

18 years agoMore in series of convertPlural
Niklas Laxström [Tue, 3 Jan 2006 15:53:44 +0000 (15:53 +0000)]
More in series of convertPlural
+polished the insane space+tab indentation in Ru

18 years ago* Bug 4456: Add hook for marking article patrolled
Rob Church [Tue, 3 Jan 2006 15:45:36 +0000 (15:45 +0000)]
* Bug 4456: Add hook for marking article patrolled

18 years agoRemoving 'search by username' feature since it causes a full table scan
Jens Frank [Tue, 3 Jan 2006 15:04:21 +0000 (15:04 +0000)]
Removing 'search by username' feature since it causes a full table scan

18 years ago* convertPlural breakage fixed a little
Niklas Laxström [Tue, 3 Jan 2006 13:19:44 +0000 (13:19 +0000)]
* convertPlural breakage fixed a little
+ non-line beginning tabs and cvs unability to do simple merge for once

18 years agoFix #4418: remove $id and $header that causes conflicts
Antoine Musso [Tue, 3 Jan 2006 11:59:39 +0000 (11:59 +0000)]
Fix #4418: remove $id and $header that causes conflicts

18 years agoallow pre-started Profiler
Domas Mituzas [Tue, 3 Jan 2006 10:31:13 +0000 (10:31 +0000)]
allow pre-started Profiler

18 years ago* PHP docmentation fixes, useful @link, properly end it with /**#@-*/, documented...
Ævar Arnfjörð Bjarmason [Tue, 3 Jan 2006 05:45:36 +0000 (05:45 +0000)]
* PHP docmentation fixes, useful @link, properly end it with /**#@-*/, documented the parsing function
* Removed apperently redundant code, I could've sworn...
* Use trigger_error() instead of wfDebugDieBacktrace()
* Renamed _ctype_parse_args() to wf_ctype_parse_args()

18 years ago* ...use commandLine.inc
Ævar Arnfjörð Bjarmason [Tue, 3 Jan 2006 05:27:24 +0000 (05:27 +0000)]
* ...use commandLine.inc

18 years ago* New unit test directory
Ævar Arnfjörð Bjarmason [Tue, 3 Jan 2006 05:25:29 +0000 (05:25 +0000)]
* New unit test directory

18 years ago* ctype_* compatability functions
Ævar Arnfjörð Bjarmason [Tue, 3 Jan 2006 02:59:05 +0000 (02:59 +0000)]
* ctype_* compatability functions

18 years ago* (bug 4457) Update for Portuguese language (pt)
Niklas Laxström [Tue, 3 Jan 2006 02:53:08 +0000 (02:53 +0000)]
* (bug 4457) Update for Portuguese language (pt)
Patch from Get_It

18 years agoFix #2 for WMF vulnerability
Tim Starling [Tue, 3 Jan 2006 02:14:55 +0000 (02:14 +0000)]
Fix #2 for WMF vulnerability

18 years agoFix #1 for WMF vulnerability
Tim Starling [Tue, 3 Jan 2006 00:51:57 +0000 (00:51 +0000)]
Fix #1 for WMF vulnerability

18 years agoIntegrating "User files" (via Special:Newimages) into the sidebar of the user page
Magnus Manske [Mon, 2 Jan 2006 20:58:32 +0000 (20:58 +0000)]
Integrating "User files" (via Special:Newimages) into the sidebar of the user page