aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specials/SpecialLockdb.php
Commit message (Collapse)AuthorAgeFilesLines
* * Changed OutputPage's handling of subtitles to use an array and implode it ↵Alexandre Emsenhuber2011-11-081-1/+1
| | | | | | | | | | | | | | | with "<br />" so that callers don't have to bother whether there's already a subtitle when adding new ones * Make OutputPage::setSubtitle(), OutputPage::addSubtitle() and OutputPage::appendSubtitle() accept a Message object in addition to a string * Added new method OutputPage::addSubtitle() to replace appendSubtitle() and marked it as deprecated * Clear the subtitles when showing an error page * Always show the subtitle from Article::viewRedirect() when showing a page; left the parameter for use in EditPage * Make Article::setOldSubtitle() add two subtitles and has to set "display:inline;" for the three possible divs to avoid too many spacing * Removed the six different backlink subtitles and added one new message 'backlinksubtitle' to replace them and added OutputPage::addBacklinkSubtitle() to factorise common code * Changed EditPage's view source to show "View source for <Page>" with the same backlink in subtitle for consistency with other back links and page titles Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/102417
* Split out checkExecutePermissions() function from userCanExecute() in ↵Aaron Schulz2011-10-261-3/+3
| | | | | | | FormSpecialPage. The former handles actual execute() calls and throws exceptions, the later inherits its purpose from SpecialPage. It just checks the page restriction to see if a user generally *could* execute. This avoids the breakage that came up in r100723 where Special:SpecialPages was throwing permission errors due to the getUsablePages() call. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/100795
* Port Special:Lockdb and Special:Unlockdb to HTMLForm using FormSpecialPageAlexandre Emsenhuber2011-10-251-69/+32
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/100723
* Use local context instead of global variablesAlexandre Emsenhuber2011-08-141-31/+22
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94476
* code cosmetics: moved the closing td to a new lineThomas Gries2011-08-111-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94285
* correction of Mixed tabs and spaces (2 tabs and 4 spaces), should use just ↵Thomas Gries2011-08-111-1/+1
| | | | | | | tabs for indentation Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94284
* adding label atttributes for confirm checkboxes in SpecialLockdb and ↵Thomas Gries2011-08-101-2/+4
| | | | | | | SpecialUnlockdb. Fix for bug30299 . Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94144
* Kill unused globalsSam Reed2011-07-181-1/+1
| | | | | | | Remove unreachable return; Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/92429
* * Use standard method to check user permissionsAlexandre Emsenhuber2011-07-161-2/+3
| | | | | | | | * Directly throw an ReadOnlyError instead of calling OutputPage::readOnlyPage() * In Special:Block: don't let user think the error is temporary if he doesn't have right and the database is locked, instead check permissions first and then the database lock Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/92377
* Follow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary ↵Siebrand Mazeland2011-06-241-2/+3
| | | | | | | variable. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90704
* Swap else if for elseifSam Reed2011-06-171-1/+1
| | | | | | | | | Trimming trailing whitespace also Doing in 3 commits (2/3), so hopefully reviewable in CR... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90281
* Fix broken r89643.Siebrand Mazeland2011-06-071-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89644
* Add GENDER support for 'lockedbyandtime'. Suggested by Purodha Blissenbach.Siebrand Mazeland2011-06-071-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89643
* (bug 29011) Remove hard coded text from Special:LockDb.Siebrand Mazeland2011-05-161-2/+7
| | | | | | | Who locked the database and when will be displayed in the content language, as reason, locker and timestamp are saved in $wgReadOnlyFile. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88278
* Removed usage of error suppression operator in Special:LockDB and ↵Alexandre Emsenhuber2011-05-151-1/+4
| | | | | | | Special:UnlockDB Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88189
* Standardised file description headers; first pathAlexandre Emsenhuber2010-08-141-0/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/71083
* Correct the address of the FSF in some of the GPL headersDerk-Jan Hartman2010-06-211-1/+1
| | | | | | | | | 59 Temple Place -> 51 Franklin Street Follow up to r68351 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/68354
* GPL Headers for all!Sam Reed2010-06-211-0/+17
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/68351
* Changes to Special:Lockdb and Special:Unlockdb:Alexandre Emsenhuber2010-06-131-68/+57
| | | | | | | | * Subclass SpecialPage instead of using wfSpecial*() functions * Now validate correctly when output is HTML5 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/67944
* Remove most named character references from outputAryeh Gregor2010-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Recommit of r66254 to trunk. This was just find extensions phase3 -iname '*.php' \! -iname '*.i18n.php' \! -iname 'Messages*.php' \! -iname '*_Messages.php' -exec sed -i 's/&nbsp;/\&#160;/g;s/&mdash;/―/g;s/&bull;/•/g;s/&aacute;/á/g;s/&acute;/´/g;s/&agrave;/à/g;s/&alpha;/α/g;s/&auml;/ä/g;s/&ccedil;/ç/g;s/&copy;/©/g;s/&darr;/↓/g;s/&deg;/°/g;s/&eacute;/é/g;s/&ecirc;/ê/g;s/&euml;/ë/g;s/&egrave;/è/g;s/&euro;/€/g;s/&harr;//g;s/&hellip;/…/g;s/&iacute;/í/g;s/&igrave;/ì/g;s/&larr;/←/g;s/&ldquo;/“/g;s/&middot;/·/g;s/&minus;/−/g;s/&ndash;/–/g;s/&oacute;/ó/g;s/&ocirc;/ô/g;s/&oelig;/œ/g;s/&ograve;/ò/g;s/&otilde;/õ/g;s/&ouml;/ö/g;s/&pound;/£/g;s/&prime;/′/g;s/&Prime;/″/g;s/&raquo;/»/g;s/&rarr;/→/g;s/&rdquo;/”/g;s/&Sigma;/Σ/g;s/&times;/×/g;s/&uacute;/ú/g;s/&uarr;/↑/g;s/&uuml;/ü/g;s/&yen;/¥/g' {} + followed by reading over every single line of the resulting diff and fixing a whole bunch of false positives. The reason for this change is given in <http://lists.wikimedia.org/pipermail/wikitech-l/2010-April/047617.html>. I cleared it with Tim and Brion on IRC before committing. It might cause a few problems, but I tried to be careful; please report any issues. I skipped all messages files. I plan to make a follow-up commit that alters wfMsgExt() with 'escapenoentities' to sanitize all the entities. That way, the only messages that will be problems will be ones that output raw HTML, and we want to get rid of those anyway. This should get rid of all named entities everywhere except messages. I skipped a few things like &nbsp that I noticed in manual inspection, because they weren't well-formed XML anyway. Also, to everyone who uses non-breaking spaces when they could use a normal space, or nothing at all, or CSS padding: I still hate you. Die. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/67090
* Attempt at normalistion of comparison styles - empty string on left and ↵Sam Reed2010-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | right hand side normalised to it being on the rhs Before this change, there were (? being regex 0 or 1) "" ===? 1 '' ===? 24 "" !==? 8 '' !==? 32 == "" 14 == '' 344 != "" 9 !== "" 4 != '' 151 !== '' 85 Rhs was the much more common, and the preferred style by many developers.. (Was a similar discussion in #mediawiki recently.. After that lolbugreport i think) Where there is a string (non empty) on the lhs, and variable/method call on the rhs still need normalising Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60744
* Replaced all instances of <<<END (which breaks vim syntax highlighting), ↵Tim Starling2009-12-071-2/+2
| | | | | | | with a type-specific end token. For HTML and SQL, this causes vim to highlight the embedded text with the HTML or SQL file type plugins respectively, which is very neat. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/59780
* * (bug 16623) Add missing </p> tag in Special:LockDB -- patch by NakonRyan Schmidt2008-12-131-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44527
* Rename all the special page class files back to their proper names.Brion Vibber2008-06-191-0/+131
1) This keeps the filename the same as the classname, which is always nice 2) This avoids duplicate filenames (such as includes/Export.php and includes/specials/Export.php) So I've at least got a chance of figuring out what file is what still... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/36481