Alexandre Emsenhuber
683dcdc83a
Fix fatal error from r78264
2010-12-12 20:45:32 +00:00
Sam Reed
0de35fc275
Followup r75763, fixup wrong change of deprecated method
...
No need to do separate htmlspecialchars et al, Xml::expandAttributes
2010-12-12 18:35:19 +00:00
Aaron Schulz
0bb1fb5cbd
* Removed redundant revdelete msg above content
...
* Show bottom patrol link even if hook replaces preview content
* Hook doc tweaks
* Assorted minor cleanups
2010-12-11 05:32:48 +00:00
Priyanka Dhanda
5d95c385be
If we only want to show the diff this should make it faster. Sort of related to to bug 25757
2010-12-10 22:47:16 +00:00
Priyanka Dhanda
3b23590869
Reverting r77516. It ain't gonna work
2010-12-06 18:21:41 +00:00
Priyanka Dhanda
8e47474df6
Fixes bug 26163 - Missing categories and iw links on diff pages.
2010-12-01 00:12:43 +00:00
Antoine Musso
e060167c57
Stylize. No differences when using: svn diff -x -wu
2010-11-27 19:01:51 +00:00
Sam Reed
cadc951d15
More reversion of r77297, 1 of 2 commits to keep it readable in CR (hopefully)
2010-11-25 22:24:11 +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
Aaron Schulz
19ec266f5a
getDiffBody() cleanups:
...
* marked it explicitly public
* cleaned up return types on failure
* broke long lines
2010-11-18 20:34:02 +00:00
Aaron Schulz
3cb06693a9
* Moved author count check to new Title::countAuthorsBetween() function
...
* Added static DifferenceEngine::intermediateEditsMsg() function
* diff-multi msg use by FlaggedRevs wasn't updated after $2 param was added. Fixed this.
* Minor cleanups to getMultiNotice()
2010-11-18 00:08:37 +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
Alexandre Emsenhuber
f8f6417965
* (bug 24833) Files name in includes/diff/ are now less confusing
...
Diff.php -> WikiDiff3.php, more descriptive
DifferenceEngine.php -> WikiDiff.php, for consistency with the above and to make way for the file below
DifferenceInterface.php -> DifferenceEngine.php, since it contains the DifferenceEngine class
2010-11-07 16:28:11 +00:00
Derk-Jan Hartman
86baf59b9c
Avoid unnecessary linebreaks in difflines. Fixes bug 25725
2010-11-01 00:14:21 +00:00
Sam Reed
39c005ca79
bug 25517 Assignment in conditions should be avoided/ http://www.mediawiki.org/wiki/Manual:Coding_conventions#Assignment_expressions
2010-11-01 00:07:17 +00:00
Sam Reed
3cfa08995d
Update a few deprecated method calls
2010-10-31 23:46:35 +00:00
Derk-Jan Hartman
cf881ba76d
Switch the hyphen in diff output to actually minus signs.
2010-10-29 18:52:59 +00:00
Derk-Jan Hartman
53bc659170
Add a nbsp to each empty "diff-marker".
...
Fixes Bug 25697
Prevent collapsed table row if both pre and post lines in the diff are totally empty.
2010-10-29 18:28:44 +00:00
Platonides
902bab26cd
Address my own CR in r75332.
2010-10-26 22:34:18 +00:00
Priyanka Dhanda
d9739ef974
bug25289 Hook that optionally adds custom content instead of article content on diff pages. Now only used by FlaggedRevs to not load the content on history pages when pending changes are enabled.
2010-10-24 18:57:25 +00:00
Roan Kattouw
e331655cf0
Revert r70640 per CR: don't expose unsalted edit tokens in URLs. Should instead change the API's patrol functionality to salt patrol tokens (coming up shortly)
2010-10-23 16:56:07 +00:00
Priyanka Dhanda
ba3ce41a72
Reverted accidental changes to DifferenceInterface in r74956
2010-10-18 18:28:16 +00:00
Priyanka Dhanda
81a5b667a9
Added to DefaultSettings
2010-10-18 18:20:19 +00:00
Sam Reed
a2589ff8c6
Assignment in loop conditions suck
...
while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in includes
Add some braces
2010-10-13 23:11:40 +00:00
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