Commit graph

103 commits

Author SHA1 Message Date
Aaron Schulz
eaf7243c5f (bug 16507) Not setting "other time" on creation unprotection error removed 2009-01-03 16:33:15 +00:00
Siebrand Mazeland
c678efcab2 Split date ($2) and time ($3) in 'protect-existing-expiry' per request of a translator. Leaving the old timestamp ($1) in for backward compatibility. 2008-10-06 20:01:43 +00:00
Chad Horohoe
414360a350 +a few docs 2008-10-06 15:31:03 +00:00
Alex Z
7049385253 Use a new message for protection form expiry options instead of recycling the blockip one. 2008-09-29 01:35:04 +00:00
Alex Z
2e373adf83 * (bug 15701) Protection form was too wide for some browsers as 2 columns, switching to 1 column format.
* Move the "unlock move permissions" checkbox to a more logical place with the options for move protection, instead of with the cascading checkbox.
2008-09-25 02:08:59 +00:00
Aaron Schulz
c4d743ec39 Shorten expiry box 2008-09-24 11:53:03 +00:00
Raimond Spekking
09049f4e32 Add a link to edit the proction reason list 2008-09-22 16:16:37 +00:00
Alex Z
6f2e810f8b Tweak to ProtectionForm: Title::getRestrictionExpiry returns 'infinity' for 'infinite' 2008-09-16 18:46:58 +00:00
Tim Starling
fd30ddc11a In protect.js:
* Use fragments of English when naming things, instead of a jumble of words vaguely related to the topic
* Use verbs in function names that are related to what the functions do
* Move all functions into an object, to avoid prefixes that look like part of a nonsensical sentence
* Fixed a bug whereby the "move" controls would not be unlocked if the expiry times differed. Refactored the relevant code.
* When the user types something into the "other time" box, automatically select "other time" from the drop-down list.

In ProtectionForm:
* Use the new protect.js interface
* Use accessor instead of Title member variable mRestrictionsExpiry
* Added an "existing expiry" option to the expiry drop-down list, instead of putting the ISO 8601 time in the "other" box
* Formatting
* Fixed convoluted expiry time data flow, documented
* s/List/Selection, for variables containing a value that the user has selected from a list
2008-09-16 04:09:06 +00:00
Alex Z
3a4183931c Allow cascading protection to be turned off without changing other settings 2008-09-14 01:11:54 +00:00
Aaron Schulz
cfda5fb062 make "other time" chain properly with JS 2008-09-13 09:24:51 +00:00
Aaron Schulz
66c1402e25 Cleanup for r40770:
* Clean up protection form
* Fix syntax typo (use '==', not '=')
* Fix $2 message in movepage cascade warning
2008-09-13 08:53:07 +00:00
Alex Z
807c3afaa7 (bug 12650) Make it possible to enter separate expiry times for each restriction type. 2008-09-13 05:33:24 +00:00
Alexandre Emsenhuber
0512db6bc3 We already have an Article object, so no need to recreate another one.
Also removed some PHP4-ism.
2008-09-11 20:01:39 +00:00
Rotem Liss
d3808460a6 Protection form: Show action as header of an action if the message for this action does not exist. 2008-09-07 08:28:45 +00:00
Rotem Liss
b4841ed400 Show properly-sized select elements in protection form when the user does not have a specific permission. 2008-09-07 08:24:00 +00:00
Aaron Schulz
d347a1a785 Some form consistency tweaks 2008-09-07 01:10:35 +00:00
Aaron Schulz
537d20c03b * Add time/reason dropdown for protect form (bug 10799)
* Shorten message
2008-09-06 23:20:58 +00:00
Aaron Schulz
a5fae953fd Fix regression from r40518; keep current values of page when no query params given 2008-09-06 17:12:45 +00:00
Aaron Schulz
b7b98cda92 Set values from query params (bug 12750) 2008-09-06 07:20:13 +00:00
Aryeh Gregor
650be91fb8 Refactor a bit preparatory to fixing bug 8068: rewrite the robot policy stuff in OutputPage to allow index and follow policy to be set separately. Also now validates input to setRobotPolicy(). And renamed setRobotpolicy to setRobotPolicy, too. If anyone was accessing $mRobotpolicy directly they're out of luck, though. 2008-07-23 19:05:43 +00:00
Ryan Schmidt
bbbd2e176a * fix error in buildSelector function 2008-07-02 01:44:20 +00:00
Aaron Schulz
7887c332de * Revert r36478; I don't see the point in this cryptic code
* Restore r36273 as explain on mailing list
2008-06-21 03:17:35 +00:00
Alexandre Emsenhuber
17a9beebd6 Note that restrictions are rights, not groups. So now, cascading protection will be allowed if all groups that have the right being check have the 'protect' right too. 2008-06-19 20:40:41 +00:00
Bryan Tong Minh
65e1c0cdeb Removed $wgEnableCascadingProtection. It was a quite pointless configuration setting which was not even properly implemented. Cascading protection has been always possible regardless of this configuration setting. 2008-06-11 21:36:07 +00:00
Ryan Schmidt
0f1cbdc80f * fixing bug 14241: pages can no longer be protected to levels you are not in 2008-05-24 16:49:05 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Niklas Laxström
2b6cfa578c * Expiry handling is really sub-optimal here 2008-04-18 06:57:47 +00:00
Brion Vibber
cf814a87c6 Cleanup for r33429 - fix double-escaping 2008-04-16 17:40:47 +00:00
Raimond Spekking
6c9f80faad * Use existing CSS classes for input form aligning
* Use more XML functions
2008-04-16 15:58:25 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Brion Vibber
19f2ab0bc4 * (bug 11039) Add missing labels on protection form
May help with screen readers which get a bit lost on the listbox-in-table layout
Fixed up some release notes entries
2008-04-09 00:02:13 +00:00
Aaron Schulz
441068209b Add showLogExtract() and remove use of FauxRequest hacks 2008-04-02 20:20:47 +00:00
Brion Vibber
44a34dbce8 * (bug 13428) Fix regression in protection form layout HTML validity
a ; in place of a . there...
2008-03-19 00:08:58 +00:00
Raimond Spekking
f035995162 * Add a CSS id to the 2nd table
* Prettify input form for RTL wikis a bit
2008-03-13 10:05:11 +00:00
Raimond Spekking
67e06d3a90 Fix PHP notice from r31871. Thanks to Aaron :) 2008-03-12 15:48:11 +00:00
Raimond Spekking
5188987d62 * Add a nice fieldset around the input form
* Use proper XML functions
* Make the title/subtitle of input form consistent with move/delete/filedelete/filerevert forms
* Rename the former subtitle message to the new title message for all languages
* Rename the former title message to the new legend message for all languages
* Kill whitespaces
2008-03-12 15:19:29 +00:00
Tim Starling
377561cd1e * Introduced OutputPage::addWikiMsg() and OutputPage::wrapWikiMsg(), to make it easier to avoid double-parsing. Double-parsing introduces differences between the old and new parsers.
* Used the new functions in the relevant places throughout the core. Where this was not possible, used wfMsgNoTrans() to avoid double-parsing.
* Calling wfEscapeWikiText() on a title before passing it to a message is unnecessary and causes bugs. The best idea is to let the message do its own escaping. Removed wfEscapeWikiText() from the caller of addedwatchtext, removedwatchtext, deletedtext, protect-text, nosuchusershort and movepage-moved. Updated all message files to use <nowiki>$1</nowiki> where appropriate in these messages. 
* Removed unnecessary empty message handling from semiprotectedpagewarning
* Removed nonsense warning about the output of wfMsg() not being safe for inclusion in HTML. 
* Changed wfShellExec() to use passthru/ob_get_contents instead of exec(). This avoids corruption of whitespace in the response. 
* Added $wgValidateAllHtml feature, to optionally validate HTML on output. 
* Fixed missing newline in cascadeprotected in MessagesEn.php
* Belatedly updated addedwatchtext to take account of the new "monobook" skin. No unwatch link in the sidebar anymore.
2008-02-18 07:25:35 +00:00
Raimond Spekking
cea6746acf partly revert of r30110. looks like an accident. 2008-01-24 13:58:40 +00:00
Huji
615041d7b4 (bug 12738) Database query syntax error in maintenance/storage/compressOld.inc 2008-01-24 11:21:36 +00:00
Brion Vibber
a15ed4bc6b * (bug 12567) Fix for misformatted read-only messages on edit, protect.
Also added proper read-only checks to several special pages.
  Have removed read-only checks from the general user permission framework
  since it doesn't belong there; user authorization is independent from
  the database's read-only state, and the way we check and present error
  conditions is necessarily different. Further, as a detail it was formatting
  the actual message incorrectly as an inline message when historically it's a
  big block message with tables and images and stuff.
2008-01-15 01:55:48 +00:00
Aaron Schulz
8d4aaa2121 More title protection clean up. JS errors were being thrown calling the non-existent cascade checkbox. Also the chain box was showing for non-existent titles even though 'create' was the only available protection type. 2007-12-11 22:10:44 +00:00
Andrew Garrett
34d22f6edc * (bug 2919) Allow the protection of non-existent pages using the regular protection interface.
* WARNING: This revision requires a schema change, which is included in maintenance/archives/patch-protected_titles.sql, and can be applied in the normal manner (update.php).
2007-12-11 09:51:56 +00:00
Andrew Garrett
a94424d59c * (bug 11346) Prevent users who cannot edit a page from changing its restrictions. 2007-12-01 09:08:43 +00:00
Rotem Liss
ea46bf1ff1 Limit text field of deletion, protection and user rights changes reasons to 255 characters (already restricted in the database) 2007-11-04 15:20:45 +00:00
Andrew Garrett
b62ec76ae2 * Ensure, on the server side, that cascading protection cannot be applied to anything but full protection, so as to prevent people from using semi-cascade-protected pages to protect arbitrary pages.
* Fix a bug in the previous javascript implementation of this behaviour (protection is per-right, not per-group!)
2007-09-10 06:27:36 +00:00
Rob Church
a54fc5b974 (bug 10872) Fall back to sane defaults when generating protection selector labels for custom restriction levels 2007-08-11 16:24:01 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Rob Church
9245969b82 Drop the redirect=no thing for non-redirects, per Brion. Seems like a waste of time and a needless load of the page record and text to me, but he's the boss... 2007-06-26 21:24:23 +00:00
Rob Church
e8e9be1176 (bug 10344) Don't follow a redirect after changing its protection level 2007-06-23 19:37:31 +00:00