Commit graph

59 commits

Author SHA1 Message Date
Chad Horohoe
efe4525d2c Merge r81448 from REL1_17: reverting RevisionMove feature back out until somebody has the time to work on it again. Reverts r67094 and its followups in trunk: r67099, r67111, r67112, r67115, r67398, r81425, r81427 2011-04-15 23:28:13 +00:00
Happy-melon
ac5751ee48 Follow-up r84249: reimplement isAllowedAny(), and restore isAllowed() to only-accepting-one-parameter mode for the time being. 2011-03-18 21:07:05 +00:00
Happy-melon
81852ea1a6 Allow User::isAllowed() to take varargs. "is allowed X or Y" is by far the more common multiple permission check in core, so this is now the behaviour of isAllowed( X, Y ); also add isAllowedAll(...) for testing "is allowed X and Y". Has the nice side effect of adding visibility to a very old function. 2011-03-18 14:48:21 +00:00
Platonides
b0f5a521ad Remove unused $wgContLang globals after refactoring at r81456 and r81456 2011-02-08 22:40:07 +00:00
Sam Reed
9c4b1a81c4 Followup r81427, actually use the $msg variable 2011-02-02 22:43:07 +00:00
Sam Reed
41dcf1d495 Followup r67094, factor out code duplication in HistoryPage::getStartBody() 2011-02-02 22:31:48 +00:00
Tim Starling
ccfe5ad97b Fix for bug 26561: clickjacking attacks. See the bug report for full documentation. 2011-01-04 06:12:33 +00:00
Sam Reed
6b0d4abc64 Revert r77297, Won't be reverting MimeMagic
Mainly whitespace reverts here
2010-11-25 22:22:53 +00:00
Antoine Musso
6fe29c9c30 revert r76464
* mixed style changes and variable removing
* logic changes
* useful comments removed
2010-11-25 20:01:34 +00:00
Trevor Parscal
6f2513eaa9 Renamed mediawiki.views.* to mediawiki.action.* to better relate to the action= URL param 2010-11-18 21:54:28 +00:00
Antoine Musso
7fbd97f10a Use accessor when trying to get a private property.
I kept hitting my browser cache when verifying my change, this
mean I have committed r76700 without testing it :(
2010-11-15 21:14:29 +00:00
Antoine Musso
9e9e22fb86 Change HistoryPage properties scope to private as well as some obvious functions scopes.
Add a few comments.
2010-11-15 20:13:58 +00:00
Antoine Musso
14e82b8eac Stylize. Add a couple braces around if/else statements. 2010-11-15 19:51:47 +00:00
Antoine Musso
7764a1fce3 Get ride of $counter in functions calls. Follow up r65417. 2010-11-15 19:47:15 +00:00
Sam Reed
10ecfeb03b Various unused variables, add some braces
Explicitally define some variables used in hook type calls
2010-11-10 19:49:04 +00:00
Sam Reed
604ae0ca1c Update deprecated method calls
Remove some unused stuff
2010-10-31 16:20:48 +00:00
Trevor Parscal
3326188eca Created mediawiki.views.history and moved init functionality from mediawiki.legacy.history to it. 2010-10-06 21:37:51 +00:00
Platonides
907227f260 (bug 24977) Remove the duplicate Access Key to compare selected revision in history 2010-09-05 13:21:04 +00:00
Roan Kattouw
32377424b9 Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00
Raimond Spekking
658f1c23eb Use proper tooltipAndAccessKeyAttribs()
Use Html::() instead of Xml::()
2010-06-12 17:08:51 +00:00
Derk-Jan Hartman
32e9f2971c Bug 23747. Move the "Compare revisions" button before the RevDel and RevMove buttons.
All three are submit buttons, and the first will be used as the default action.
2010-06-12 14:59:16 +00:00
Tobias
d73fb3713e New feature RevisionMove (bug 21312). Introducing SpecialRevisionMove.php and revisionmove permission. Experimental, use at own risk (no group has this permission by default, so it should not break anything unless you are foolish enough to experiment with it :)) 2010-05-30 18:00:01 +00:00
Aryeh Gregor
74a21f3bd1 Remove most named character references from output
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.
2010-05-30 17:33:59 +00:00
Platonides
b608000544 Bug 23699: Add trailing \n at the end of <div>s in wrapWikiMsg()
Patch by Umherirrender
2010-05-28 21:22:45 +00:00
Aaron Schulz
38cd3d3898 (bug 23593) Made revision/date links enabled at history/contribs for deleted revs 2010-05-24 14:05:24 +00:00
Aaron Schulz
f670705a42 Removed redundant check if diffButtons() 2010-04-22 01:16:03 +00:00
Tim Starling
688edac45b For r58153: in HistoryPage, removed the user permissions checks for deleted revision filtering. Added a tag to the SQL filtered SQL query so that sysadmins can easily find the relevant code if there is a problem. 2010-02-09 01:17:01 +00:00
Aaron Schulz
71802939c3 * Added Id to "deleted only" check to make label work
* Broke some super long lines
2010-02-04 10:39:24 +00:00
Chad Horohoe
a30810bc68 Followup r61181, put @return nothing back on history(). Some people like it. 2010-01-28 19:46:12 +00:00
Alexandre Emsenhuber
ede70b2070 Per ^demon, follow-up r61173: remove useless "@return nothing" 2010-01-17 21:02:03 +00:00
Alexandre Emsenhuber
6f0690ea28 Fix some doxygen warnings 2010-01-17 16:34:22 +00:00
Aaron Schulz
cb5166a9a6 Follow up r60759: forgot to commit hook change 2010-01-07 01:21:02 +00:00
Tim Starling
c8c2982108 Fix for r58197, removed unnecessary array_merge() 2009-12-30 08:01:17 +00:00
Chad Horohoe
aa872f67cd Revert r59730 for now. Has some warnings and might be causing a weird regression I cant track down 2009-12-04 16:04:01 +00:00
Chad Horohoe
d1df388226 (bug 15853) Feeds for non-existing pages returned a feed of all pages where rev_page = 0. In theory of course this should never happen, but it does. Conveniently this started returning a nice "page does not exist" error in the feed. Patch by Mormegil. 2009-12-04 13:15:11 +00:00
Aaron Schulz
a6b30d6b82 bug 21192 Remove second suppression button from pages with single edit ('compare' too) 2009-11-18 23:31:47 +00:00
Aaron Schulz
90dcb3c1f2 * bug 21267 change "show/hide" to "show", if user cannot submit Special:Revisiondelete
* Added revDeleteLinkDisabled() function
2009-10-30 02:14:22 +00:00
Chad Horohoe
dcac5f193e (bug 19859) Remove HTMLDiff. Could possibly be salvaged as an extension one day, but not today. DifferenceEngine and friends will need some refactoring to allow spinning this off. In the meantime, removing the mostly-broken experimental feature. Its always in the logs if anyone wants to reuse the code somewhere else one day 2009-10-28 18:18:05 +00:00
Jure Kajzer
0599761bd6 removed ts_tags from getQueryInfo. it's already added in ChangeTags::modifyDisplayQuery. Causes column abigious definition error in Oracle 2009-10-27 15:19:24 +00:00
Tobias
f4c55344ef Partially fixing bug 20186: Allow filtering history for revision deletion. Checking for isBigDeletion to exclude large page histories. Also available only to users with deleterevision permission (paranoia) 2009-10-26 18:45:27 +00:00
Aaron Schulz
be057fb89e Follow-up r57470: Add show/hide links for users that can view deleted revisions but not delete them 2009-10-24 22:07:59 +00:00
Raimond Spekking
e1a26e3948 Split time and date for better i18n
Translatewiki uses this since months but it was was never done in core?!
2009-10-16 06:59:59 +00:00
Raimond Spekking
ef1b93df18 Consistency tweak: coalesce tool links with pipes instead of () () 2009-10-13 15:47:57 +00:00
Brion Vibber
fa590ffe32 Use 'deleterevision', not 'deletedhistory' right to control access to hide/show revs from PageHistory... having a button we can't use ain't too helpful. :) 2009-10-07 18:06:21 +00:00
Brion Vibber
8657bf90c3 Cleanup for r57288: use $wgContLang->alignEnd() instead of the isRtl() ? 'left' : 'right' dance 2009-10-06 18:54:47 +00:00
Tim Starling
c3e788299d (bug 20966) Use the name of the <button> element to determine which button was clicked, instead of the value. This avoids some IE-specific non-standard behaviour. 2009-10-06 06:30:24 +00:00
Raimond Spekking
8b9389852d * Bug 20944: Align revision delete button left for RTL wikis.
* Add a class to the button
2009-10-02 12:18:43 +00:00
Aaron Schulz
c2f7ea4d7b * Renamed deletedcontent to deletedtext
* Removed deletedrevision and used deletedhistory/deletedtext instead
2009-09-30 19:50:35 +00:00
Aaron Schulz
942a84716a * Split off deletedrevision (view only) right and give it to sysops
* Allow show/hide link on top revision just like history
2009-09-28 03:09:48 +00:00
Siebrand Mazeland
a2d74e2229 * process messages with escapenoentities instead of escape to allow use of for example &bull; (line 55)
* change string explode to array (lines 53-54)
* break long lists of parameters
* remove trailing whitespace
2009-09-18 11:51:00 +00:00