lhc/web/wiklou.git
17 years ago* MessagesEn: adding (UTC) to the new protect-expiring message
Leon Weber [Tue, 23 Jan 2007 18:41:20 +0000 (18:41 +0000)]
* MessagesEn: adding (UTC) to the new protect-expiring message
* miscellaneous German updates, unification of user block related messsages: "Block(ade)" -> "Sperre" etc.
* (bug 8656) (re)move more makesysop messages from language files to i18nextension file
Patches by raymond.

17 years ago* (bug 8739) MessagesMr.php file (Marathi)
Niklas Laxström [Tue, 23 Jan 2007 17:38:25 +0000 (17:38 +0000)]
* (bug 8739) MessagesMr.php file (Marathi)

17 years ago* (bug 8742) Update to Japanese localisation (ja)
Niklas Laxström [Tue, 23 Jan 2007 17:24:44 +0000 (17:24 +0000)]
* (bug 8742) Update to Japanese localisation (ja)

17 years ago* Updates
Niklas Laxström [Tue, 23 Jan 2007 16:45:23 +0000 (16:45 +0000)]
* Updates

17 years ago* Reformatted
Niklas Laxström [Tue, 23 Jan 2007 16:40:42 +0000 (16:40 +0000)]
* Reformatted

17 years agoAdd searchableIPs differentiator
Greg Sabino Mullane [Tue, 23 Jan 2007 14:47:12 +0000 (14:47 +0000)]
Add searchableIPs differentiator

17 years agoShow expiry time in the null revision inserted on protection with an expiry date.
Andrew Garrett [Tue, 23 Jan 2007 10:51:33 +0000 (10:51 +0000)]
Show expiry time in the null revision inserted on protection with an expiry date.

17 years agoDisable the expiry field in Protection for users without the requisite permission.
Andrew Garrett [Tue, 23 Jan 2007 07:57:41 +0000 (07:57 +0000)]
Disable the expiry field in Protection for users without the requisite permission.

17 years ago* Removing a handful of unused globals.
Nick Jenkins [Tue, 23 Jan 2007 07:29:58 +0000 (07:29 +0000)]
* Removing a handful of unused globals.
* $stack is not modified in Profiler::calltreeCount(), no need to pass-by-ref.
* Add FIXME marker to non-cross-platform line.
* A freshly created string does not need to be returned by reference. [Xml::namespaceSelector() and HTMLnamespaceselector() ].

17 years agoThe war on redundant ampersand usage!
Nick Jenkins [Mon, 22 Jan 2007 23:50:42 +0000 (23:50 +0000)]
The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.

17 years agoFurther fixes to protection expiry:
Brion Vibber [Mon, 22 Jan 2007 20:59:00 +0000 (20:59 +0000)]
Further fixes to protection expiry:
* Use RFC 2822-style date/time format instead of localized formatting for
  the expiry time in the protection form; while ugly, it actually works;
  a localized time is usually lossy (changing the time on submit) and
  more significantly will fail for any UI language that's not english!
* Rearrange some of the form display logic to handle error conditions
  a little more gracefully; invalid expiry format caused the form to
  be displayed twice.
* Should be nicer on session token expiration as well, showing the
  form instead of just an exception message.

17 years agoRevert redlinks for user-tools special:contributions links for now; tim complains...
Brion Vibber [Mon, 22 Jan 2007 20:34:25 +0000 (20:34 +0000)]
Revert redlinks for user-tools special:contributions links for now; tim complains at the large number of extra queries on various changes list views.
If restored, needs to be done more efficiently, with batch queries.

17 years agoSome fixes to Werdna's protection expiration:
Brion Vibber [Mon, 22 Jan 2007 19:52:32 +0000 (19:52 +0000)]
Some fixes to Werdna's protection expiration:
* Don't apply an expired protection expiry time in loadRestrictions
* Purge expired restrictions if found during loadRestrictions
* Don't apply expired cascading restrictions in getCascadeProtectionSources
* Purge expired restrictions if found during getCascadeProtectionSources

17 years ago* Updates
Niklas Laxström [Mon, 22 Jan 2007 19:28:37 +0000 (19:28 +0000)]
* Updates

17 years ago* Reformatted
Niklas Laxström [Mon, 22 Jan 2007 19:22:06 +0000 (19:22 +0000)]
* Reformatted

17 years agoprofiling
Tim Starling [Mon, 22 Jan 2007 19:19:43 +0000 (19:19 +0000)]
profiling

17 years agoFix Skin::preloadExistence() for special pages.
Tim Starling [Mon, 22 Jan 2007 19:19:15 +0000 (19:19 +0000)]
Fix Skin::preloadExistence() for special pages.

17 years agoIn Special:Watchlist: do user/user talk page existence queries in a batch. User:...
Tim Starling [Mon, 22 Jan 2007 19:18:36 +0000 (19:18 +0000)]
In Special:Watchlist: do user/user talk page existence queries in a batch. User::edits() queries are still a problem.

17 years agoIS NOT NULL is not needed here; NULL entries in SQL by definition don't match compari...
Brion Vibber [Mon, 22 Jan 2007 18:59:08 +0000 (18:59 +0000)]
IS NOT NULL is not needed here; NULL entries in SQL by definition don't match comparisons other than IS NULL.
Also removed unneeded reference (=&)

17 years ago* (bug 8719) Firefox release notes lie! Fix tooltips for Firefox 2 on x11;
Brion Vibber [Mon, 22 Jan 2007 17:59:43 +0000 (17:59 +0000)]
* (bug 8719) Firefox release notes lie! Fix tooltips for Firefox 2 on x11;
  accesskeys default settings appear to be same as Windows.

17 years ago* (bug 3717) Update user count for AuthPlugin account autocreation
Brion Vibber [Mon, 22 Jan 2007 17:14:44 +0000 (17:14 +0000)]
* (bug 3717) Update user count for AuthPlugin account autocreation

17 years agoUpdates for Indonesian (id) localization. New and modified translations.
Ivan Lanin [Mon, 22 Jan 2007 17:07:53 +0000 (17:07 +0000)]
Updates for Indonesian (id) localization. New and modified translations.

17 years ago* Use 1movedto2_redir instead of 1movedto2 in the pages history when moving over...
Rotem Liss [Mon, 22 Jan 2007 16:53:28 +0000 (16:53 +0000)]
* Use 1movedto2_redir instead of 1movedto2 in the pages history when moving over redirects.
* Removing Title::createRedirect: not used at all in trunk and in the extensions, originally created for the old template namespace script, which was deleted.

17 years ago(bug 8505) Change label of interwiki links to Eml Wikipedia
Rotem Liss [Mon, 22 Jan 2007 15:05:56 +0000 (15:05 +0000)]
(bug 8505) Change label of interwiki links to Eml Wikipedia

17 years agogerman localisation updates by raymond
Leon Weber [Mon, 22 Jan 2007 14:57:52 +0000 (14:57 +0000)]
german localisation updates by raymond

17 years ago(bug 5962) Update for Italian language (it)
Rotem Liss [Mon, 22 Jan 2007 14:53:41 +0000 (14:53 +0000)]
(bug 5962) Update for Italian language (it)

17 years ago* Fixes and updates
Niklas Laxström [Mon, 22 Jan 2007 13:45:38 +0000 (13:45 +0000)]
* Fixes and updates

17 years agoFix.
Rotem Liss [Mon, 22 Jan 2007 13:02:14 +0000 (13:02 +0000)]
Fix.

17 years agoAllow sending per-user contribution requests to "contributions" query group
Domas Mituzas [Mon, 22 Jan 2007 11:19:03 +0000 (11:19 +0000)]
Allow sending per-user contribution requests to "contributions" query group

17 years agoKazakh i18n updates by AlefZet
Andrew Garrett [Mon, 22 Jan 2007 09:59:50 +0000 (09:59 +0000)]
Kazakh i18n updates by AlefZet

17 years agoUpdate parserTests help text to describe the --compare option.
Nick Jenkins [Mon, 22 Jan 2007 09:22:17 +0000 (09:22 +0000)]
Update parserTests help text to describe the --compare option.

17 years agoMistake.
Rotem Liss [Mon, 22 Jan 2007 09:11:37 +0000 (09:11 +0000)]
Mistake.

17 years agoAdding a link to Special:Protectedpages in Special:Log/protect.
Rotem Liss [Mon, 22 Jan 2007 09:10:43 +0000 (09:10 +0000)]
Adding a link to Special:Protectedpages in Special:Log/protect.

17 years agoGrammar.
Rotem Liss [Mon, 22 Jan 2007 09:07:06 +0000 (09:07 +0000)]
Grammar.

17 years agoMake my last three commits interoperate (display protection expiry on Special:Protect...
Andrew Garrett [Mon, 22 Jan 2007 08:57:40 +0000 (08:57 +0000)]
Make my last three commits interoperate (display protection expiry on Special:Protectedpages). Message slightly changed (brackets removed) so I've updated the translation so kindly provided by Rotem :-)

17 years agoThe support for time-limited protection isn't 'future' anymore.
Rotem Liss [Mon, 22 Jan 2007 08:34:56 +0000 (08:34 +0000)]
The support for time-limited protection isn't 'future' anymore.

17 years agoUpdate.
Rotem Liss [Mon, 22 Jan 2007 08:31:41 +0000 (08:31 +0000)]
Update.

17 years ago* (bug 4133) Allow page protections to be made with an expiry date, in the same forma...
Andrew Garrett [Mon, 22 Jan 2007 08:26:41 +0000 (08:26 +0000)]
* (bug 4133) Allow page protections to be made with an expiry date, in the same format as block expiry dates. Existing protections are assumed to be infinite, as are protections made with the new field left blank.

17 years agoFix.
Rotem Liss [Mon, 22 Jan 2007 07:00:20 +0000 (07:00 +0000)]
Fix.

17 years agoUpdate.
Rotem Liss [Mon, 22 Jan 2007 06:58:58 +0000 (06:58 +0000)]
Update.

17 years agoPrevent minor E_STRICT warning:
Nick Jenkins [Mon, 22 Jan 2007 05:57:04 +0000 (05:57 +0000)]
Prevent minor E_STRICT warning:
* Strict Standards: Non-static method RecentChange::newFromRow() should not be called statically in includes/SpecialRecentchanges.php on line 243.

17 years agoOne of these days, I'm going to remember to update release-notes
Andrew Garrett [Mon, 22 Jan 2007 05:03:16 +0000 (05:03 +0000)]
One of these days, I'm going to remember to update release-notes

17 years agoNew special page, Special:Protectedpages, which shows all protected pages and their...
Andrew Garrett [Mon, 22 Jan 2007 05:01:37 +0000 (05:01 +0000)]
New special page, Special:Protectedpages, which shows all protected pages and their protection status (full protection status is not pulled out due to performance considerations, so it just shows "full protected" or "semi protected".

17 years agoRemoved unused messages.
Ivan Lanin [Sun, 21 Jan 2007 19:26:30 +0000 (19:26 +0000)]
Removed unused messages.

17 years agoAjax show editors message moved to the extension repository (r19556)
Antoine Musso [Sun, 21 Jan 2007 16:58:09 +0000 (16:58 +0000)]
Ajax show editors message moved to the extension repository (r19556)

17 years agoNew hook: AjaxAddScript. Used to load some more ajax javascripts
Antoine Musso [Sun, 21 Jan 2007 16:46:36 +0000 (16:46 +0000)]
New hook: AjaxAddScript. Used to load some more ajax javascripts

17 years agoUpdate.
Rotem Liss [Sun, 21 Jan 2007 16:16:44 +0000 (16:16 +0000)]
Update.

17 years agoIndent output when adding links and meta tags
Antoine Musso [Sun, 21 Jan 2007 16:01:50 +0000 (16:01 +0000)]
Indent output when adding links and meta tags

17 years ago* German translation update for Oversight extension
Leon Weber [Sun, 21 Jan 2007 15:37:05 +0000 (15:37 +0000)]
* German translation update for Oversight extension
* Partly revert of last patch with new Ajax function messages.
Patches by Raymond

17 years agoReorder conditions from Werdna's previous commit; shortcut if not a user CSS/JS subpa...
Rob Church [Sun, 21 Jan 2007 13:47:11 +0000 (13:47 +0000)]
Reorder conditions from Werdna's previous commit; shortcut if not a user CSS/JS subpage to avoid the expensive queries

17 years agoIgnore cascading protection for user CSS/JS subpages, as it's obvious that they were...
Andrew Garrett [Sun, 21 Jan 2007 12:43:07 +0000 (12:43 +0000)]
Ignore cascading protection for user CSS/JS subpages, as it's obvious that they were placed in user subpages to circumvent needing to protect them. This fixes at least one bot on enwiki

17 years ago* (bug 7859) yet another kazakh localisation patch.
Leon Weber [Sun, 21 Jan 2007 09:55:14 +0000 (09:55 +0000)]
* (bug 7859) yet another kazakh localisation patch.

17 years agoRemove any additional trailing slashes when subpaging is enabled
Antoine Musso [Sun, 21 Jan 2007 03:47:38 +0000 (03:47 +0000)]
Remove any additional trailing slashes when subpaging is enabled

17 years agoRevert r19529 ('ajax editors list'); per chat w/ hashar I recommend working on this...
Brion Vibber [Sun, 21 Jan 2007 03:14:06 +0000 (03:14 +0000)]
Revert r19529 ('ajax editors list'); per chat w/ hashar I recommend working on this as an extension for now. It seems pretty modular, and should be an ideal candidate for that.

17 years agoIndonesian translations for "ajax-se..." messages
Ivan Lanin [Sun, 21 Jan 2007 02:50:02 +0000 (02:50 +0000)]
Indonesian translations for "ajax-se..." messages

17 years ago'ok 1' when a file is not under revision control
Antoine Musso [Sat, 20 Jan 2007 23:39:43 +0000 (23:39 +0000)]
'ok 1' when a file is not under revision control

17 years ago* add a lame verbose statement
Antoine Musso [Sat, 20 Jan 2007 23:35:37 +0000 (23:35 +0000)]
* add a lame verbose statement
* add a test for svn:eol-style=native property

17 years ago(bug 8403) Respect bad image list exceptions in galleries on wiki pages
Rob Church [Sat, 20 Jan 2007 22:34:05 +0000 (22:34 +0000)]
(bug 8403) Respect bad image list exceptions in galleries on wiki pages

17 years ago* Update German translations
Leon Weber [Sat, 20 Jan 2007 22:01:57 +0000 (22:01 +0000)]
* Update German translations
* Move makesysop messages of ksh to extension localisation
Patches by Raymond.
/me slaps Raymond.

17 years ago* Finnish update
Niklas Laxström [Sat, 20 Jan 2007 21:36:41 +0000 (21:36 +0000)]
* Finnish update

17 years agoAdded missing comma in hashar's updater
Leon Weber [Sat, 20 Jan 2007 21:28:25 +0000 (21:28 +0000)]
Added missing comma in hashar's updater

17 years agoFix an error introduced with r19483. Pointed out by LeonWP.
Antoine Musso [Sat, 20 Jan 2007 21:22:31 +0000 (21:22 +0000)]
Fix an error introduced with r19483. Pointed out by LeonWP.

17 years agoAssuming we mostly want a quiet output.
Antoine Musso [Sat, 20 Jan 2007 21:18:49 +0000 (21:18 +0000)]
Assuming we mostly want a quiet output.

17 years agoOptional feature : 'Ajax show editors' based on an idea by Tim Starling
Antoine Musso [Sat, 20 Jan 2007 21:05:36 +0000 (21:05 +0000)]
Optional feature : 'Ajax show editors' based on an idea by Tim Starling
Merge from hashar's branch.

17 years ago(bug 8671) Expose "wpDestFile" as a parameter to "uploadtext", so they can beef up...
Rob Church [Sat, 20 Jan 2007 20:45:52 +0000 (20:45 +0000)]
(bug 8671) Expose "wpDestFile" as a parameter to "uploadtext", so they can beef up their Commons upload links

17 years agoAdd some parser tests for URL-encoding in URL functions. The second case could be...
Rob Church [Sat, 20 Jan 2007 20:15:33 +0000 (20:15 +0000)]
Add some parser tests for URL-encoding in URL functions. The second case could be difficult to fix, because something like {{localurl:Some page|amp=&&b=2}} is ambiguous.

17 years agoIntroduce 'CustomEditor' hook; see docs/hooks.txt for more information
Rob Church [Sat, 20 Jan 2007 19:51:21 +0000 (19:51 +0000)]
Introduce 'CustomEditor' hook; see docs/hooks.txt for more information

17 years ago* (bug 8712) Expose user groups as a JavaScript global [patch c/o AzaToth]
Rob Church [Sat, 20 Jan 2007 19:38:51 +0000 (19:38 +0000)]
* (bug 8712) Expose user groups as a JavaScript global [patch c/o AzaToth]
* Tweak release notes from hashar's last commmit

17 years agoFix #8703 : correct Limburgish namespace translations
Antoine Musso [Sat, 20 Jan 2007 19:36:16 +0000 (19:36 +0000)]
Fix #8703 : correct Limburgish namespace translations

17 years agoCheck for interface existence in wfLoadAllExtensions() too, otherwise if an extension...
Rob Church [Sat, 20 Jan 2007 19:24:37 +0000 (19:24 +0000)]
Check for interface existence in wfLoadAllExtensions() too, otherwise if an extension comes with an interface [e.g. BookInformation], the require() can cause it to be double-initialised (the implementing classes will have been loaded, which will have caused PHP to autoload the interface definition) leading to a fatal error

17 years agoar: fix the 'create a new page' on search page when no exact match found
Antoine Musso [Sat, 20 Jan 2007 19:22:11 +0000 (19:22 +0000)]
ar: fix the 'create a new page' on search page when no exact match found

17 years ago* (bug 8715) Warn users when editing an interface message whether or not the message...
Rob Church [Sat, 20 Jan 2007 19:17:45 +0000 (19:17 +0000)]
* (bug 8715) Warn users when editing an interface message whether or not the message page exists
* Format default "cascadeprotectedwarning" better
* Code readability tweak in Title::isProtected()

17 years agoreport number of failed tests as well
Antoine Musso [Sat, 20 Jan 2007 19:15:49 +0000 (19:15 +0000)]
report number of failed tests as well

17 years agouserCan(Edit|Create|Move) are deprecated : do not use them
Antoine Musso [Sat, 20 Jan 2007 17:58:38 +0000 (17:58 +0000)]
userCan(Edit|Create|Move) are deprecated : do not use them

17 years agoWe forgot userCanCreate()
Antoine Musso [Sat, 20 Jan 2007 17:57:52 +0000 (17:57 +0000)]
We forgot userCanCreate()

17 years agoCopy a test from parserTests.txt
Antoine Musso [Sat, 20 Jan 2007 15:54:09 +0000 (15:54 +0000)]
Copy a test from parserTests.txt

17 years ago* Added getter for fallback
Niklas Laxström [Sat, 20 Jan 2007 15:31:32 +0000 (15:31 +0000)]
* Added getter for fallback

17 years agoFix doxygen groups
Antoine Musso [Sat, 20 Jan 2007 15:20:40 +0000 (15:20 +0000)]
Fix doxygen groups

17 years agoUse Doxygen @addtogroup instead of phpdoc @package && @subpackage
Antoine Musso [Sat, 20 Jan 2007 15:09:52 +0000 (15:09 +0000)]
Use Doxygen @addtogroup instead of phpdoc @package && @subpackage

17 years agoFix.
Rotem Liss [Sat, 20 Jan 2007 15:04:45 +0000 (15:04 +0000)]
Fix.

17 years ago* (bug 8691) Update to Japanese localisation (ja)
Niklas Laxström [Sat, 20 Jan 2007 14:47:13 +0000 (14:47 +0000)]
* (bug 8691) Update to Japanese localisation (ja)

17 years ago* SECURITY: dont source the settings file
Antoine Musso [Sat, 20 Jan 2007 14:45:18 +0000 (14:45 +0000)]
* SECURITY: dont source the settings file
* Enable man pages generation

17 years agoFix capital letters left in the stylesheets and scripts messages in several langauge...
Rotem Liss [Sat, 20 Jan 2007 14:44:59 +0000 (14:44 +0000)]
Fix capital letters left in the stylesheets and scripts messages in several langauge files.

17 years ago* Updates to Korean from klutzy
Niklas Laxström [Sat, 20 Jan 2007 14:17:49 +0000 (14:17 +0000)]
* Updates to Korean from klutzy

17 years agosmall comment for devs
Antoine Musso [Sat, 20 Jan 2007 13:37:25 +0000 (13:37 +0000)]
small comment for devs

17 years agoRename constructors to __constructor
Antoine Musso [Sat, 20 Jan 2007 13:34:31 +0000 (13:34 +0000)]
Rename constructors to __constructor

17 years agoTypo.
Rotem Liss [Sat, 20 Jan 2007 13:30:59 +0000 (13:30 +0000)]
Typo.

17 years agoFix.
Rotem Liss [Sat, 20 Jan 2007 13:20:00 +0000 (13:20 +0000)]
Fix.

17 years ago(bug 8708) Namespace translations for Zealandic language
Rob Church [Sat, 20 Jan 2007 13:05:00 +0000 (13:05 +0000)]
(bug 8708) Namespace translations for Zealandic language

17 years agowhitespaces killing
Antoine Musso [Sat, 20 Jan 2007 12:59:34 +0000 (12:59 +0000)]
whitespaces killing

17 years agoSplit out ParserOptions and ParserOutput classes in their own files.
Antoine Musso [Sat, 20 Jan 2007 12:50:56 +0000 (12:50 +0000)]
Split out ParserOptions and ParserOutput classes in their own files.
Made using svn copy so the logs are kept.

17 years ago(bug 8701) Check database lock status when blocking/unblocking users
Rob Church [Fri, 19 Jan 2007 21:32:49 +0000 (21:32 +0000)]
(bug 8701) Check database lock status when blocking/unblocking users

17 years agoFix#8677 : Update to french language. Patch by Korrigan <le.korrigan@gmail.com>
Antoine Musso [Fri, 19 Jan 2007 17:53:21 +0000 (17:53 +0000)]
Fix#8677 : Update to french language. Patch by Korrigan <le.korrigan@gmail.com>

17 years agoUpdate statistics, change default behaviro to just test, not delete thousands of...
Steve Sanbeg [Fri, 19 Jan 2007 17:16:45 +0000 (17:16 +0000)]
Update statistics, change default behaviro to just test, not delete thousands of pages

17 years ago* Last commit to these files was based on an obsolete revision that was merged
Ævar Arnfjörð Bjarmason [Fri, 19 Jan 2007 14:47:11 +0000 (14:47 +0000)]
* Last commit to these files was based on an obsolete revision that was merged
  incorrectly. This has changes from the second-last revision with newlines munged

17 years ago r56629@Arsia: avar | 2007-01-19 11:52:12 +0000
Ævar Arnfjörð Bjarmason [Fri, 19 Jan 2007 12:01:43 +0000 (12:01 +0000)]
 r56629@Arsia:  avar | 2007-01-19 11:52:12 +0000
 * Regression test to make sure we use unix newlines

17 years ago r56628@Arsia: avar | 2007-01-19 11:51:14 +0000
Ævar Arnfjörð Bjarmason [Fri, 19 Jan 2007 12:01:04 +0000 (12:01 +0000)]
 r56628@Arsia:  avar | 2007-01-19 11:51:14 +0000
 * Regression test to make sure we use <?php ?> tags

17 years ago r56626@Arsia: avar | 2007-01-19 11:48:24 +0000
Ævar Arnfjörð Bjarmason [Fri, 19 Jan 2007 11:59:29 +0000 (11:59 +0000)]
 r56626@Arsia:  avar | 2007-01-19 11:48:24 +0000
 * Ran dos2unix(1) on php files with dos newlines

17 years agoNormalize / to DIRECTORY_SEPARATOR in wfRelativePath() input, plays nicer on Windows
Brion Vibber [Fri, 19 Jan 2007 10:40:57 +0000 (10:40 +0000)]
Normalize / to DIRECTORY_SEPARATOR in wfRelativePath() input, plays nicer on Windows

17 years agoFix for MySQL strict mode; explicitly set the deprecated page_restrictions field...
Brion Vibber [Fri, 19 Jan 2007 09:50:19 +0000 (09:50 +0000)]
Fix for MySQL strict mode; explicitly set the deprecated page_restrictions field when inserting a new page record.
Also removed the now-useless $restrictions parameter from Article::insertOn(); it was optional and wasn't used anywhere anyway.
Aaaand while in there, cleaned up an unnecessary reference parameter (old php 4 compat)