Chad Horohoe
f4cf1f599b
Followup r72866, make 100 in 100+ a param. Makes raising the limit easier :)
2010-09-13 14:21:13 +00:00
Chad Horohoe
8a275fc6a1
(bug 24007) Diff pages now mention the number of users having edited intermediate revisions. Also updated MessagesQqq so these are a little more clear
2010-09-12 15:39:32 +00:00
Chad Horohoe
ab64932ba8
Partial revert r72527, unrelated/unfinished changes
2010-09-07 11:37:37 +00:00
Chad Horohoe
26a10e5dae
Comment fix
2010-09-07 11:34:34 +00:00
Platonides
0c52065dac
Follow-up r72349.
...
Remove unused globals $wgStylePath, $wgStyleVersion, $wgUser and the no longer used $wgJQueryOnEveryPage.
2010-09-04 13:27:12 +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
Chad Horohoe
91026c2542
Don't show "older edit" when no older edit available. Based on patch by Umherirrender
2010-09-01 14:16:23 +00:00
Chad Horohoe
9e6c7cc8ef
Get rid of PHP4-style constructors
2010-08-30 16:52:51 +00:00
Max Semenik
a5346f0439
"Difference between pages" is now displayed instead of "Difference between revisions" on diffs when appropriate. This is even more important now that we have Special:ComparePages
2010-08-22 10:06:06 +00:00
Sam Reed
0cb57fea08
Replace some instances of $wgUser passed to ParserOutput::get()/getKey() for $wgOut->parserOptions()
2010-08-10 19:57:53 +00:00
Alexandre Emsenhuber
fb36e6ac3e
* standardised file headers
...
* added a basic description
* added @file
2010-08-08 11:55:47 +00:00
Alexandre Emsenhuber
0a3d8dc0d3
Per comments, follow-up to r70278: make patrol tokens compatibles between api and normal interface
2010-08-07 18:56:52 +00:00
Alexandre Emsenhuber
3f6432ff1e
* (bug 24418) action=markpatrolled now requires a token
2010-08-01 15:50:30 +00:00
Chad Horohoe
6965ca86f9
Cleanup to r69191: use addParserOutput() instead of addHtml(), specify current rev on Article, use doViewParse() so we can cache the ParserOutput
2010-07-09 12:43:27 +00:00
Chad Horohoe
5be8547151
(bug 24124) Diffs are taking 10 to 20 seconds to load. Use parser cache for page preview when diffing to current version (which is the most often). Cuts execution time down on my sample page from 1141.44ms down to 13.78ms on a pcache hit
2010-07-08 17:01:28 +00:00
Derk-Jan Hartman
921619b119
Correct the address of the FSF in some of the GPL headers
...
59 Temple Place -> 51 Franklin Street
2010-06-21 13:13:32 +00:00
Chad Horohoe
94a69f24fc
Cleanup most of the DIY extension detection/dl() code into nice clean wfDl()
2010-06-14 18:09:19 +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/ /\ /g;s/—/―/g;s/•/•/g;s/á/á/g;s/´/´/g;s/à/à/g;s/α/α/g;s/ä/ä/g;s/ç/ç/g;s/©/©/g;s/↓/↓/g;s/°/°/g;s/é/é/g;s/ê/ê/g;s/ë/ë/g;s/è/è/g;s/€/€/g;s/↔//g;s/…/…/g;s/í/í/g;s/ì/ì/g;s/←/←/g;s/“/“/g;s/·/·/g;s/−/−/g;s/–/–/g;s/ó/ó/g;s/ô/ô/g;s/œ/œ/g;s/ò/ò/g;s/õ/õ/g;s/ö/ö/g;s/£/£/g;s/′/′/g;s/″/″/g;s/»/»/g;s/→/→/g;s/”/”/g;s/Σ/Σ/g;s/×/×/g;s/ú/ú/g;s/↑/↑/g;s/ü/ü/g;s/¥/¥/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   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
fb29f7b1af
* Removed leftover token check of unhide=1 that was removed elsewhere
...
* Diff doc tweak
2010-05-24 18:15:52 +00:00
Raimond Spekking
71d280803c
Bug 23608: " " not followed by a semicolon in diffs
2010-05-20 13:38:41 +00:00
Mark A. Hershberger
edc744dcd9
* remove function_exists calls for things that functions that always
...
exist under supported versions of PHP
** assert() is always defined for DifferenceEngine()
** mail() is always defined for UserMailer()
** is_executable() is defined for Windows from PHP 5.0.0 on
2010-05-19 05:33:27 +00:00
Alexandre Emsenhuber
5f1b38182b
fixed some doxygen warnings
2010-05-12 21:26:34 +00:00
Tobias
a8393a4164
fixing bug 23113 (introduced in r60945) which breaks show/hide links in diffs
2010-04-09 14:38:35 +00:00
Aaron Schulz
35294bb23e
Refactored duplication into revisionDeleteLink()
2010-01-11 21:35:31 +00:00
Aaron Schulz
d82a071a05
bug 21411 'Add a new message rev-suppressed-no-diff for diff without entry in public log'
2010-01-09 20:18:41 +00:00
Siebrand Mazeland
e8a65f9e25
Update break notation to self enclosed and properly spaced
2009-11-14 20:59:15 +00:00
Aaron Schulz
e07adc0e3c
A few cleanups for r58351
2009-10-30 02:23:58 +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
Aaron Schulz
cdace26ad3
bug 21282 &unhide=1 on next/prev diff links if already viewing the diff
2009-10-28 06:37:51 +00:00
Aaron Schulz
4a851b7dd4
Tweak r58117: removed diff-multi class
2009-10-25 15:30:31 +00:00
Aaron Schulz
8c74d4b938
Added deleted diff notice for unhide=1 urls to be clear and consistent
2009-10-25 15:27:49 +00:00
Alexandre Emsenhuber
e14987e85d
* (bug 21053) Fixed diff header layout for multi diffs with no changes
2009-10-22 15:11:52 +00:00
Brion Vibber
2a113f6a3a
fix eol style
2009-10-01 19:32:28 +00:00
Aaron Schulz
4f9f6cbf73
added 'rev-suppressed-unhide-diff'
2009-09-30 23:12:05 +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
ea63b48375
Follow-up r57109: missing file
2009-09-30 15:45:38 +00:00
Aaron Schulz
1c4e82f84d
Moved UI diff stuff into its own DifferenceInterface file
2009-09-30 15:36:55 +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
Tim Starling
51e9917aa8
Fix for bug 20601: disable debug output. It can be re-enabled by patching.
2009-09-16 03:48:29 +00:00
Niklas Laxström
22f142a99c
Recommit r53710 without the hack for preventing style sheets being added multiple times (is not possible with OutputPage::addStyle in the first place)
2009-08-24 05:37:40 +00:00
Brion Vibber
82b80fc483
Revert r53710 "* Allow suppressing "line 1" from the diffs, which can get quite annoying with many diffs"
...
Use of static variable here means that running multiple diffs during one request may mess things up. It should rather check if it's been added in $wgOut already.
2009-08-21 22:01:16 +00:00
Aryeh Gregor
3f3b9d28a2
Show change flag tooltips everywhere, not just RC
...
Follow-up to r54242. Pointed out by Umherirrender on CodeReview.
2009-08-04 00:28:20 +00:00
Chad Horohoe
a2462d8fcd
* (bug 16311) Make recent change flags acronyms instead of spans. Also move this crap to common, we don't need identical declarations in 5 different skins.
2009-07-29 22:15:52 +00:00
Niklas Laxström
bc43f524f7
* Don't add 200 extra css/js requests when showing 100 diffs
...
* Allow suppressing "line 1" from the diffs, which can get quite annoying with many diffs
2009-07-24 11:06:27 +00:00
Aaron Schulz
2a763847ca
Enable show/hide link on diff to cur (consistency)
2009-07-18 02:51:41 +00:00
Siebrand Mazeland
8bc003e538
* follow-up to r51301: also add separated date and time as parameters for 'currentrev-asof' for consistency
...
* replace use of deprecated makeKnownLinkObj() by link()
* use array type parameter instead of string to escapeLocalUrl(), getFullURL() and getFullUrl() for readability
* change return type of htmlDiffArgument(). CHECKME: Should this method be private? (not used anywhere in SVN at the moment)
* break a few long lines with parameters
2009-06-06 15:09:19 +00:00
Tim Starling
9a1bfc924b
Fix for r49412, possible fatal errors.
2009-06-03 16:33:08 +00:00
Purodha B Blissenbach
00a913cecd
Message 'revisionasof' - date and time separated as of request by user "Der Umherirrende" at
...
http://translatewiki.net/w/i.php?title=Support&oldid=1243738#split_date_and_time
2009-06-01 20:45:46 +00:00
Tim Starling
bc35951c93
In Special:RevisionDelete:
...
* Refactored to remove massive duplication
* Removed page parameter and associated contextPage member variable, doesn't seem to do anything.
* Put ID lists into a single ids parameter and member variable instead of having one for each type.
* Fixed inappropriate call of Title::newFromUrl(), always wrong
* Don't pretend to use the return value from functions that don't return anything, this reduces readability.
* Use the table names for deleteKey/typeName values, they look more like English
* Use protected not private
* Remove requirement for log type to be specified in the target
* Use POST for RevisionDelete entry forms, to avoid URL size limits and issues with non-PATH_INFO URLs
* Don't purge all pages that use the given file
* LocalFile::purgeCache() already calls purgeHistory,() no need to do it again. But do call purgeDescription().
* Removed token from unhide=1 links, unnecessary
* Tokens are necessary on file streaming links, added them
* Fixed private data leakage due to incorrect use of LocalRepo::newFromArchiveName(). Non-existent placeholder file was returned which meant that $oimage->userCan(File::DELETED_FILE) was always true. Pass the archive name to tryShowFile() instead of the storage key.
* Using ls_field='oi_timestamp' is not correct, oi_timestamp refers to the timestamp of the revision in question, whereas the key that is stored is the timestamp of the previous revision (i.e. the timestamp in oi_archive_name). oi_archive_name would be more correct, although only half the field is used.
Elsewhere:
* Added missing message filehist-missing
* Fixed double asterisk in Status::getWikiText()
* Fixed escaping of the target parameter to Special:RevisionDelete from ImagePage
* Deleted FileStore.php. Deprecated in filerepo refactor except for get()/export() but somehow resurrected by RevisionDelete. Hopefully this will be the end of it. New interfaces will be added for wfStreamFile() in a later commit.
* Added convenience function File::getStorageKey(), factored out of Special:Undelete
* Added convenience function Revision::newFromArchiveRow(), factored out of Special:Undelete and Special:RevisionDelete
* Fixed notice in Special:Upload, uninitialised $pageText
FIXME: current revision can be suppressed on undeletion causing an unauthenticated unsuppress. Comments indicate this is a known issue. I fixed the parser cache pollution in this case but not the rest.
2009-06-01 11:37:06 +00:00
Niklas Laxström
d3b61fea7c
Escaping fixes
2009-05-22 09:35:48 +00:00
Chad Horohoe
02e9f413eb
Cleanup to r50310 & 50313: Don't use @ on chmod() and dl(), use wfSuppressWarnings()/wfRestoreWarnings()
2009-05-19 16:34:49 +00:00
Alexandre Emsenhuber
2a82a66505
fix E_PARSE from r50310
2009-05-07 16:51:45 +00:00
Chad Horohoe
389f46dfbe
(bug 16925) Diffs no longer silently fail when $wgExternalDiffEngine is set to 'wikidiff' or 'wikidiff2' but extension is not installed. Should now gracefully fall back to the PHP diff.
2009-05-07 16:00:29 +00:00
Aaron Schulz
318783dc36
* Workaround ugly Safari/Chrome handling of <col> tags for hidden diffs (bug 18538)
...
* A few code style tweaks
2009-04-21 06:21:27 +00:00
Chad Horohoe
78b1818dbe
No more $wgTitle in the diff engine.
2009-04-11 18:23:06 +00:00
Aaron Schulz
4b9187e598
Add convenience links for bug 18068
2009-03-22 13:26:27 +00:00
Roan Kattouw
2b9be47063
(bug 17863) Fix regression from r47890 that broke Show changes on the edit form; do this by skipping over revision loading as well as text loading when custom texts are set using setText()
2009-03-09 11:00:12 +00:00
Roan Kattouw
5349ea2dd8
* API: (bug 13209) Add rvdiffto parameter to prop=revisions
...
* Add $wgAPIMaxUncachedDiffs (default 1) which controls how many non-cached diffs will be served per request
* Tweak DifferenceEngine.php a bit to make cache status accessible, and remove a useless 'parseinline' which broke diff generation in the API
2009-02-28 13:25:21 +00:00
Aaron Schulz
b99b877508
Bug 17241 The diffonly URI parameter should cascade to "Next edit" and "Previous edit" diff links
2009-02-24 23:17:08 +00:00
Raimond Spekking
aa0f3bbaeb
Move <div>...</div> from message text to program code for consinstency with all other messages.
2009-02-22 11:32:33 +00:00
Aaron Schulz
2437a0a1a0
(bug 5776) Add extra patrol link on bottom for diffs
2009-02-12 14:45:10 +00:00
Aaron Schulz
0821fa7da9
Added missing Revision::FOR_THIS_USER flag
2009-02-09 22:41:02 +00:00
Aaron Schulz
ad708b10eb
Tweaks for bug 17060
...
* Don't show links to deleted revs in history for anyone (consistency)
* Always hide deleted content from all users; it can be viewed via (show/hide) links
2009-02-09 22:27:25 +00:00
Aaron Schulz
6bfaecba3b
* Tweaks for bug 17052:
...
** Made radio button default selection fallback to the next one for deleted revs
** Use deleted diff message rather than showing an ambiguous "empty diff"
* Code style tweaks
2009-02-09 07:42:54 +00:00
Niklas Laxström
71604e3978
* kill E_NOTICE
2009-02-01 15:44:01 +00:00
Aaron Schulz
ebddcaca6a
(bug 17104) Remove [Mark as patrolled] link for already patrolled revisions
2009-01-24 22:50:28 +00:00
Alex Z
b5d624f1c0
(bug 17055) Use a CSS class ('mw-revdelundel-link') for RevisionDelete "(show/hide)" links rather than hardcoded <tt><small>, reduce some code duplication by creating Linker::revDeleteLink() to make the links.
2009-01-18 21:07:09 +00:00
Aaron Schulz
8075446c1c
Use getRawUserText function, since this is just there to trigger index usage for patrol link query
2009-01-15 17:33:13 +00:00
Aaron Schulz
e9fefecaed
Fix for r45723
2009-01-14 00:39:43 +00:00
Aaron Schulz
92b51089ac
Cleaned up single rev page diffs (bug 11527)
2009-01-14 00:26:21 +00:00
Aaron Schulz
220c59be9a
(bug 16923) New parameter value diff=review for the URL
2009-01-07 21:09:18 +00:00
Aaron Schulz
82c0328abf
Tweak r45314: just return out
2009-01-02 15:56:33 +00:00
Aaron Schulz
19024619f6
(bug 9243) Avoid exit to make MW handle page exceptions properly
2009-01-02 11:36:52 +00:00
Alexandre Emsenhuber
8c14e2df88
* Like r44911 but for MediaWiki:Difference message: switching from raw HTML to wiki text
...
* Whitespaces tweaks
2008-12-23 17:14:33 +00:00
Aaron Schulz
39bd0c75d5
Use more thorough Title->userCan('patrol')
2008-12-17 07:17:59 +00:00
Siebrand Mazeland
2f89609706
Partial revert of r43269 for HTMLDiff.php. In file addHtml() is a method. Thanks to demon for spotting this.
2008-11-06 22:43:19 +00:00
Siebrand Mazeland
0a9af4a884
Consistent casing for addHTML()
2008-11-06 22:20:29 +00:00
Jack Phoenix
3eb0e98e2c
adding AbortDiffCache hook to allow canceling the caching of a diff
2008-11-06 21:41:07 +00:00
Guy Van den Broeck
0a1d40df5f
Fixed bug in HTML differ. A bad index was used when everything is removed from a page.
2008-10-27 10:15:24 +00:00
Tim Starling
90ed80443e
(bug 12586) Use wfHostname() everywhere, remove $wguname and $wgNodeName. Use getenv('COMPUTERNAME') on Windows.
2008-10-06 07:30:38 +00:00
Tim Starling
7410147d02
Fixes for r41154 and r41155:
...
* Boolean parameters are widely accepted to reduce readability. Replaced the new boolean parameters with class constant parameters instead.
* Re-added Revision::revText(), for backwards compatibility
* The getUser()/getUserText() changes near line 1223 of SpecialUndelete.php were incorrect, $file is an ArchivedFile not a Revision, and doesn't have any $isPublic parameters.
2008-09-24 09:44:45 +00:00
Aaron Schulz
804deee936
rev_deleted security improvements as well as fix for rawpages
2008-09-22 14:37:05 +00:00
Aaron Schulz
81e7adc6ad
Remove Revision::revText() and move functionality to getText()
2008-09-22 14:24:18 +00:00
Chad Horohoe
762199e69b
Remove two useless classes from HTMLDiff. One was entirely unused and useless, and the other was a wrapper for a more simple solution.
2008-09-16 19:19:12 +00:00
Chad Horohoe
e9aa9ddfc3
Clean up some of the i18n stuff in HTMLDiff. Still not perfect, but better.
2008-09-13 06:50:56 +00:00
Raimond Spekking
e9ad9393cf
Move the timestamp into the message of the current revision link to make the link consistent with the link to the previous version on the left side
2008-08-27 18:23:03 +00:00
Raimond Spekking
b4e72cf141
Fix for r40041. PHP strict notice. Thanks to Ialex
2008-08-26 20:23:53 +00:00
Raimond Spekking
657831a2f5
* Add tooltips to rollback and undo links
...
At least on de.wiki the users with the review right have the rollback right too. They are confused about the difference rollback/undo. Hope that helps a bit
2008-08-26 20:06:57 +00:00
Chad Horohoe
dd0d713b73
Move @ingroup around so each of the classes are picked up by Doxygen.
2008-08-26 15:23:53 +00:00
Chad Horohoe
0524aef5b6
* Add all HTMLDiff-related classes to the autoloader.
...
* Move all stuff @ingroup DifferenceEngine to /diff
* Split off Node and friends to Nodes.php to make HTMLDiff.php shorter.
2008-08-25 20:19:00 +00:00