Rotem Liss [Fri, 12 Jan 2007 16:49:12 +0000 (16:49 +0000)]
Moving tooltip-recreate near all the other tooltips.
Rotem Liss [Fri, 12 Jan 2007 16:45:57 +0000 (16:45 +0000)]
Removing the unorganised messages from the middle of MessagesEn.php (were organised above).
Rotem Liss [Fri, 12 Jan 2007 16:43:15 +0000 (16:43 +0000)]
Reorganising the tooltip and accesskey messages in en and he again; fixing messages.inc and messageTypes.inc.
Rotem Liss [Fri, 12 Jan 2007 16:12:12 +0000 (16:12 +0000)]
Update.
Niklas Laxström [Fri, 12 Jan 2007 15:35:59 +0000 (15:35 +0000)]
* (bug 8607) Update for Swedish language (sv)
Niklas Laxström [Fri, 12 Jan 2007 14:55:54 +0000 (14:55 +0000)]
* (bug 8606) Update for Belarusian Translation (be)
Andrew Garrett [Fri, 12 Jan 2007 13:25:11 +0000 (13:25 +0000)]
Missing dollarsign re-added
Andrew Garrett [Fri, 12 Jan 2007 12:54:29 +0000 (12:54 +0000)]
Interface message that sounded crap but is now un-crap
Domas Mituzas [Fri, 12 Jan 2007 12:50:37 +0000 (12:50 +0000)]
Wipe out memcached code from WatchedItem: does not make sense to cache (user,page), when hitrate is just 50% (and we lived without this cache forever)
Andrew Garrett [Fri, 12 Jan 2007 12:46:01 +0000 (12:46 +0000)]
"Two"
Nick Jenkins [Fri, 12 Jan 2007 10:03:51 +0000 (10:03 +0000)]
For the "includes/" directory:
* removing unused local vars
* removing used global declarations
* adding FIXMEs against extract() calls and lines that seem to be using uninitialized variables
* adding some array() declarations.
Andrew Garrett [Fri, 12 Jan 2007 09:10:30 +0000 (09:10 +0000)]
Various,
Brion Vibber [Fri, 12 Jan 2007 08:42:36 +0000 (08:42 +0000)]
* Pass e-mail and real name fields to AuthPlugin::addUser, as additional
optional fields, which may be considered useful at registration time.
This fixes the problem where the e-mail address given for a new account
got replaced with null. Woops!
Andrew Garrett [Fri, 12 Jan 2007 08:37:07 +0000 (08:37 +0000)]
Various tweaks for last commit, including a merge of the functions to determine if an image/page is cascade-protected; message changes, et cetera
Andrew Garrett [Fri, 12 Jan 2007 07:31:34 +0000 (07:31 +0000)]
Display MULTIPLE culprit pages for cascading protection in the messages. Also improve performance by separating boolean 'is this page affected by a cascading protection' from array 'who are the culprits for this cascading protection' -- both are cached in member variables of the Title object.
Nick Jenkins [Fri, 12 Jan 2007 07:26:32 +0000 (07:26 +0000)]
For the "languages/" directory :
* removing unused global declarations.
* adding one or two if/else braces.
* adding one or two array declarations.
Nick Jenkins [Fri, 12 Jan 2007 06:39:14 +0000 (06:39 +0000)]
$repos not defined, using {$this->path} instead.
Nick Jenkins [Fri, 12 Jan 2007 06:35:10 +0000 (06:35 +0000)]
This would actually do a SQL query of literally 'TRUNCATE $tableName;' - switching to "" quotes so that $tableName is substituted with the correct value.
Brion Vibber [Fri, 12 Jan 2007 06:17:13 +0000 (06:17 +0000)]
fix typo which caused page restrictions to be loaded too often
Nick Jenkins [Fri, 12 Jan 2007 06:10:52 +0000 (06:10 +0000)]
Replacing "$hash" with "$this->hash" - without this would result in cache class not caching anything.
Nick Jenkins [Fri, 12 Jan 2007 06:08:39 +0000 (06:08 +0000)]
$newdb not defined, I'm guessing that it just shouldn't be here, but please change if this is incorrect.
Nick Jenkins [Fri, 12 Jan 2007 06:05:33 +0000 (06:05 +0000)]
$doShared not defined, I'm guessing that $shared was what was intended, but please change if this is incorrect.
Nick Jenkins [Fri, 12 Jan 2007 06:02:56 +0000 (06:02 +0000)]
$fullName not defined, changing to $path instead.
Nick Jenkins [Fri, 12 Jan 2007 06:00:51 +0000 (06:00 +0000)]
Database update will work better if $dbw is initialized.
Nick Jenkins [Fri, 12 Jan 2007 05:50:03 +0000 (05:50 +0000)]
For the maintenance/ directory files:
* Removing unused local vars.
* Removing unused global declarations.
* removing one or two pass-by-refs parameter declarations where not required by PHP5.
* Adding some local variable declarations / initializations (initialized to either to array(), null) to keep static code analyzer happy.
* Changing lines like this: "extract( $dbw->tableNames( 'page', 'archive' ) );" to be like this: "list ($page, $archive) = $dbw->tableNamesN( 'page', 'archive' );".
* Add one or two braces to if-else blocks.
Nick Jenkins [Fri, 12 Jan 2007 05:44:25 +0000 (05:44 +0000)]
Prevent E_STRICT errors on file upload of the following type:
* Strict Standards: Undefined index: application/ogg in includes/MimeMagic.php on line 154
* Strict Standards: Undefined index: ogm in includes/MimeMagic.php on line 163
Aryeh Gregor [Fri, 12 Jan 2007 04:59:26 +0000 (04:59 +0000)]
* (bug 8002) Math should render left-to-right even in right-to-left wikis
Andrew Garrett [Fri, 12 Jan 2007 04:43:33 +0000 (04:43 +0000)]
UI stuff for the cascading protection feature - warnings for sysops editing cascading protected pages (including which page the protection has come from), more useful errors for users (including which page the protection has come from), and a note at the top of the protect page when trying to unprotect a page affected by cascading protection to the effect of 'you can't affect the cascading protection here'.
Ilmari Karonen [Fri, 12 Jan 2007 03:36:46 +0000 (03:36 +0000)]
(bug 3446) Add user preference to hide page content below diffs, can be
overridden by adding diffonly=1 or diffonly=0 to the URL of the diff page
Aryeh Gregor [Fri, 12 Jan 2007 01:58:51 +0000 (01:58 +0000)]
Add remaining messages
Aryeh Gregor [Fri, 12 Jan 2007 01:48:20 +0000 (01:48 +0000)]
* Brion says Opera Mac uses Shift-Esc-, not Ctrl-
* Show "Ctrl-", not "Control-", for standardization
Andrew Garrett [Fri, 12 Jan 2007 01:44:33 +0000 (01:44 +0000)]
Restore backwards-compatibility for old types of restrictions; wipe page_restrictions column in update for page_restrictions and on updateRestrictions
Ilmari Karonen [Fri, 12 Jan 2007 00:51:03 +0000 (00:51 +0000)]
fix untranslated message
Brion Vibber [Fri, 12 Jan 2007 00:35:26 +0000 (00:35 +0000)]
Pretty up parser test output:
* include old failing tests in --record output, at the end of the changed items
* suppress failure notices during run if --record and --quiet are both specified, so they're not duped
* show relative paths for the test input files
* moved FiveUpgrade::relativize() to wfRelativePath() for wider use; using DIRECTORY_SEPARATOR instead of '/' but might explode on windows, haven't tried it ;) won't handle different drives/UNC servers right, probably
Domas Mituzas [Fri, 12 Jan 2007 00:34:42 +0000 (00:34 +0000)]
PHP and types ;-) mcaccess--, dbaccess--
Domas Mituzas [Fri, 12 Jan 2007 00:10:49 +0000 (00:10 +0000)]
someone was lost in type conversion too ;-)
Domas Mituzas [Thu, 11 Jan 2007 23:51:05 +0000 (23:51 +0000)]
I suppose.... someone forgot to uncomment? ;-)
( mcaccess--, dbaccess--)
Brion Vibber [Thu, 11 Jan 2007 23:36:05 +0000 (23:36 +0000)]
remove intrusive debugging line added in r19111
Niklas Laxström [Thu, 11 Jan 2007 21:09:58 +0000 (21:09 +0000)]
* Some updates
Aryeh Gregor [Thu, 11 Jan 2007 20:55:27 +0000 (20:55 +0000)]
* Escape '$' also for double quotes
* This appears to be ready for mass production use. Any objections to committing php rebuildLanguage.php --lang=all?
Aryeh Gregor [Thu, 11 Jan 2007 20:49:16 +0000 (20:49 +0000)]
* Update for new messages
* Use addcslashes() for more reliable escaping (previously would hiccup on the possibly erroneous string "\'" in MessagesBr.php)
Aryeh Gregor [Thu, 11 Jan 2007 20:15:03 +0000 (20:15 +0000)]
* When both ' and " occur in a message, escape the less common of the two
* Use a couple of simpler constructs in place of fors/foreaches
* Why don't we use this script routinely for all message files?
Rotem Liss [Thu, 11 Jan 2007 18:33:24 +0000 (18:33 +0000)]
Updating release notes - updated French translation.
Rotem Liss [Thu, 11 Jan 2007 18:32:11 +0000 (18:32 +0000)]
(bug 8586) Update for French language (fr)
Greg Sabino Mullane [Thu, 11 Jan 2007 16:05:29 +0000 (16:05 +0000)]
Overhaul postgres update section - standardize version - start 1.10 section.
Greg Sabino Mullane [Thu, 11 Jan 2007 15:57:41 +0000 (15:57 +0000)]
Add page_restrictions table.
Greg Sabino Mullane [Thu, 11 Jan 2007 15:57:25 +0000 (15:57 +0000)]
Minor spacing.
Greg Sabino Mullane [Thu, 11 Jan 2007 15:56:37 +0000 (15:56 +0000)]
Better output of filenames.
Rotem Liss [Thu, 11 Jan 2007 15:45:46 +0000 (15:45 +0000)]
Update.
Leon Weber [Thu, 11 Jan 2007 15:29:35 +0000 (15:29 +0000)]
* Extension documentation updates
* German localisation updates
Patch by raymond.
Leon Weber [Thu, 11 Jan 2007 14:50:34 +0000 (14:50 +0000)]
* (bug 8567) Added hook RawPageViewBeforeOutput just before the text is blown out in action=raw,
so extensions might influence the output.
Niklas Laxström [Thu, 11 Jan 2007 12:03:19 +0000 (12:03 +0000)]
* Trying to fix the mess after r19100
Ivan Lanin [Thu, 11 Jan 2007 08:34:47 +0000 (08:34 +0000)]
Updates for Indonesian (id) localisation. New translations (block-log-flags...) and improvements.
Ilmari Karonen [Thu, 11 Jan 2007 04:21:00 +0000 (04:21 +0000)]
whitespace
Ilmari Karonen [Thu, 11 Jan 2007 04:13:11 +0000 (04:13 +0000)]
make default system messages show on "view source"
Ilmari Karonen [Thu, 11 Jan 2007 04:11:26 +0000 (04:11 +0000)]
Allow customizing the minimum per-namespace protection level via $wgNamespaceProtection.
By default, editing NS_MEDIAWIKI requires "editinterface" permission, just as before.
Ilmari Karonen [Thu, 11 Jan 2007 02:50:59 +0000 (02:50 +0000)]
Improve the Finnish translation of prefs-help-realname. The new version
is somewhat more specific than the English one, but at least it gets rid
of the mistranslation of "credit".
Brion Vibber [Thu, 11 Jan 2007 02:20:50 +0000 (02:20 +0000)]
spanish update from titoxd
Ilmari Karonen [Thu, 11 Jan 2007 02:20:19 +0000 (02:20 +0000)]
Partially rv r19101+r19102, fix noise in error console by explicitly
referring to window.ta. Also make a local copy to avoid it getting
clobbered below if doId is given; this seems reasonable, hopefully it
won't break any hidden assumptions anywhere.
Brion Vibber [Thu, 11 Jan 2007 01:53:48 +0000 (01:53 +0000)]
fix migration of page_restrictions fields from old versions of mw that didn't have move-protection option (field values like 'sysop')
Ilmari Karonen [Thu, 11 Jan 2007 01:52:03 +0000 (01:52 +0000)]
Finnish messages for cascading protection
Brion Vibber [Thu, 11 Jan 2007 01:31:51 +0000 (01:31 +0000)]
new table to clone
Andrew Garrett [Thu, 11 Jan 2007 01:17:19 +0000 (01:17 +0000)]
Fix a couple of mistyped variable names, mysql strict incompatibilities, make cascading protect checkbox disabled for users without protect permission.
Aryeh Gregor [Thu, 11 Jan 2007 01:01:40 +0000 (01:01 +0000)]
Fix to keep even more JS error consoles happy
Aryeh Gregor [Thu, 11 Jan 2007 01:00:34 +0000 (01:00 +0000)]
Fix to keep JS error consoles happy
Aryeh Gregor [Thu, 11 Jan 2007 00:57:30 +0000 (00:57 +0000)]
Use the full id for Monobook accesskeys/tooltips, to avoid conflicts like watch/ca-watch and n-help/ca-nstab-help. Also fix some still-lingering errors. Anyway, if any scary-looking foreigners ask in a menacing tone what happened to their tooltips, you know where to send them . . . sigh.
Andrew Garrett [Thu, 11 Jan 2007 00:52:50 +0000 (00:52 +0000)]
Next batch of bug-fixes.
Andrew Garrett [Thu, 11 Jan 2007 00:44:55 +0000 (00:44 +0000)]
More bugfixes. Fantastic. (and I tested, too! brion will be proud of me.)
Andrew Garrett [Thu, 11 Jan 2007 00:31:04 +0000 (00:31 +0000)]
Fixes for a couple of embarrassing bugs I should have caught in testing. Brion and Tim save the day...
Andrew Garrett [Wed, 10 Jan 2007 23:47:10 +0000 (23:47 +0000)]
I must not forget SVN ADD
I must not forget SVN ADD
I must not forget SVN ADD
I must not forget SVN ADD
I must not forget SVN ADD
Andrew Garrett [Wed, 10 Jan 2007 23:32:38 +0000 (23:32 +0000)]
Merge from branches/werdna/restrictions-separation (forked at r18959): * Branch page_restrictions column out into its own table, also creating a 'cascading protection' feature, which automagically disallows edits to pages transcluded into a page protected with this new option. Various other code tidiness fixes and refactoring in the log messages of branches/werdna/restrictions-separation. REQUIRES DATABASE SCHEMA UPGRADE
Brion Vibber [Wed, 10 Jan 2007 19:30:15 +0000 (19:30 +0000)]
fix encoding corruption from r19068
Ivan Lanin [Wed, 10 Jan 2007 19:13:27 +0000 (19:13 +0000)]
Fix SpecialVersion->formatCredits input. Version and Url parameters should be null to be treated properly with isset.
Ivan Lanin [Wed, 10 Jan 2007 18:48:50 +0000 (18:48 +0000)]
Updates for Indonesian (id) localisation, sync with extensions
Rotem Liss [Wed, 10 Jan 2007 18:34:52 +0000 (18:34 +0000)]
Removing several duplicate messages from en and he.
Rotem Liss [Wed, 10 Jan 2007 18:28:13 +0000 (18:28 +0000)]
Accesskeys should not be translated: adding them to the ignored messages list.
Rotem Liss [Wed, 10 Jan 2007 18:22:19 +0000 (18:22 +0000)]
(bug 8569) Update for Lithuanian language (lt)
Aryeh Gregor [Wed, 10 Jan 2007 18:01:30 +0000 (18:01 +0000)]
Fix some typos from last night's commit spotted by Nikerabbit
Leon Weber [Wed, 10 Jan 2007 15:23:32 +0000 (15:23 +0000)]
* Added SkinTemplateOutputPageBeforeExec hook before SkinTemplate::outputPage()
starts page output (http://lists.wikimedia.org/pipermail/wikitech-l/2007-January/028554.html)
Rotem Liss [Wed, 10 Jan 2007 14:20:14 +0000 (14:20 +0000)]
Reorganising the tooltip and accesskey messages in English and Hebrew (moving them near the other similar messages), fixing several problems discovered in both, and updating messages.inc.
Andrew Garrett [Wed, 10 Jan 2007 09:23:34 +0000 (09:23 +0000)]
Fix line-ending breakage from r19053
Brion Vibber [Wed, 10 Jan 2007 08:40:07 +0000 (08:40 +0000)]
revert api clutter from r18995
Title::getArticle duplicates Article constructor for no reason
Title::isRedirect duplicates Article::isRedirect for no reason
neither function appears to be used
Andrew Garrett [Wed, 10 Jan 2007 07:08:24 +0000 (07:08 +0000)]
Spanish Internationalisation; patch by Titoxd
Aryeh Gregor [Wed, 10 Jan 2007 06:03:14 +0000 (06:03 +0000)]
XHTML validity
Aryeh Gregor [Wed, 10 Jan 2007 05:51:10 +0000 (05:51 +0000)]
Compatibility for last commit: strip [alt-whatever] suffix if it was previously hardcoded, so we don't get duplicate tips
Aryeh Gregor [Wed, 10 Jan 2007 05:18:30 +0000 (05:18 +0000)]
* (bugs 5051, 5376) All tooltips and accesskeys moved out of Monobook.js and into their own system messages. JavaScript is now only used to attach the prefix to the accesskey in the tooltip.
** All languages should work correctly (all are free from syntax errors and some random picks look right), yay ssed
** Tested en in a couple of browsers, all accesskeys and tooltips appear to work perfectly
** Accesskeys/tooltips can be removed by setting the appropriate messages to '-'
** Any preexisting modifications made to the ta array will carry through, although it should be considered deprecated
* Removed some undocumented JS related to bidi that snuck into MessagesKu.php's and MessagesYi.php's monobook.js, it should be added via wikibits.js for all bidi languages if we want it at all
Antoine Musso [Tue, 9 Jan 2007 21:13:12 +0000 (21:13 +0000)]
Update script with changes made in language.inc. Stuff still generated in /locale/
Antoine Musso [Tue, 9 Jan 2007 21:00:14 +0000 (21:00 +0000)]
Load the ajax stuff once we have a title or we will not be able to parse
wikitext. The parser requires a $wgTitle object or it throws an exception.
Antoine Musso [Tue, 9 Jan 2007 20:57:10 +0000 (20:57 +0000)]
braces are usefull
Antoine Musso [Tue, 9 Jan 2007 20:25:28 +0000 (20:25 +0000)]
whitespaces killing
Leon Weber [Tue, 9 Jan 2007 20:10:44 +0000 (20:10 +0000)]
* Made the PLURAL: parser function return singular on -1 per default.
Antoine Musso [Tue, 9 Jan 2007 19:56:23 +0000 (19:56 +0000)]
Some static functions. Fix strict errors when running updateSearchIndex.php
Leon Weber [Tue, 9 Jan 2007 19:24:09 +0000 (19:24 +0000)]
* German localisation patch for BoardVote
* German localisation patch for core
both by raymond
Leon Weber [Tue, 9 Jan 2007 15:29:38 +0000 (15:29 +0000)]
Slight improvement of enhanced recent changes lines. There were complaints about
seeing things like "(-9) Versionen" in German, which means "-9 revisions".
Antoine Musso [Tue, 9 Jan 2007 14:20:50 +0000 (14:20 +0000)]
* document --record (would have saved me 1 hour of work this morning)
* --record automaticly create tables if they do not exists.
Antoine Musso [Tue, 9 Jan 2007 14:07:15 +0000 (14:07 +0000)]
remove some spaces
Rotem Liss [Tue, 9 Jan 2007 12:28:15 +0000 (12:28 +0000)]
Update.
Nick Jenkins [Tue, 9 Jan 2007 09:51:53 +0000 (09:51 +0000)]
One more E_STRICT warning tweak for 192.168.0.64/wiki/index.php?action=ajax (i.e. no 'rs' argument supplied) :
* Strict Standards: Undefined index: rs in includes/AjaxDispatcher.php on line 38
Q: Should / could the AjaxDispatcher constructor maybe be using the $wgRequest global instead of accessing $_POST and $_GET directly?
Nick Jenkins [Tue, 9 Jan 2007 07:05:34 +0000 (07:05 +0000)]
Testing AJAX watch/unwatch, with E_STRICT error_reporting:
Prevent :
* Strict Standards: Non-static method Title::newFromID() should not be called statically in includes/AjaxFunctions.php on line 147
[stopped AJAX watch/unwatch working for me, as I have errors being logged to the page output]
E_STRICT warnings on truncated GET input (e.g. http://192.168.0.64/wiki/index.php?action=ajax&rs=wfAjaxWatch&rsargs[]=1 , rather than http://192.168.0.64/wiki/index.php?action=ajax&rs=wfAjaxWatch&rsargs[]=1&rsargs[]=u ), prevent by specifying default $watch value of "" (which should result in an error '<err#>' response, which is probably fine).
* Strict Standards: Missing argument 2 for wfAjaxWatch() in includes/AjaxFunctions.php on line 138
* Strict Standards: Undefined variable: watch in includes/AjaxFunctions.php on line 142
E_STRICT warnings on another truncated GET input ( http://192.168.0.64/wiki/index.php?action=ajax&rs=wfAjaxWatch&rsargs= ), prevent by specifying default $pageID value of "" (which again should result in an error '<err#>' response because it's not numeric, which is probably fine).
* Strict Standards: Missing argument 1 for wfAjaxWatch() in includes/AjaxFunctions.php on line 138
E_STRICT warning on bad GET input - "rs" as array, not as a string - (e.g. http://192.168.0.64/wiki/index.php?action=ajax&rs[]= ), adding explicit cast to string:
* Strict Standards: htmlspecialchars() expects parameter 1 to be string, array given in includes/AjaxDispatcher.php on line 58
Nick Jenkins [Tue, 9 Jan 2007 06:36:39 +0000 (06:36 +0000)]
Prevent XSS / arbitrary HTML injection via unescaped "rs" parameter. Proof-of-Concept attack: localhost/wiki/index.php?action=ajax&rs=%3Cscript%3Ealert(%22Ownage%20-%20All%20your%20base%20are%20belong%20to%20me!%22);%3C/script%3E , which will result in this executable JavaScript output: "unknown function <script>alert("Ownage - All your base are belong to me!");</script>"