Commit graph

123 commits

Author SHA1 Message Date
Rotem Liss
09af7c4abd Merging 'diff-multi' and 'diff-multi-revs'. 2006-12-06 15:27:30 +00:00
Rotem Liss
58c070601f Combining new 'diff-multi-rev' and 'diff-multi-revs' to one message with plural. 2006-12-06 15:20:15 +00:00
Ilmari Karonen
c1902105b7 fix "show changes" edit button breakage from r18194 2006-12-06 08:46:22 +00:00
Ilmari Karonen
efe38a9d83 (bug 5485) Show number of intervening revisions in diff view.
Also clean up RELEASE-NOTES some more after SpecialContributions revert.
2006-12-06 08:28:44 +00:00
Ilmari Karonen
21667dfead ...the previous line can also me moved inside the if block 2006-12-06 06:58:50 +00:00
Ilmari Karonen
3f3a113117 avoid calling wfMsg( 'missingarticle' ) unless needed 2006-12-06 06:55:34 +00:00
Nick Jenkins
ae8554c45b Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. 2006-11-29 11:43:58 +00:00
Andrew Garrett
f062b09dc3 * (bug 6295) Add a 'revision patching' functionality, where an edit can be undone (with a functionality similar to diff rev1 rev2 | patch -R rev3 -o rev3). This is triggered by including &undo=revid in an edit URL. A link to a URL that will undo a given edit is shown on NEW NON-CURRENT revision headers on diff pages. 2006-11-26 10:54:01 +00:00
Aryeh Gregor
a94b77d29e After discussion with Fyren on IRC, apply last patch for both sides of diff. 2006-11-17 04:14:19 +00:00
Aryeh Gregor
7f33a86ead (bug 7688) When viewing diff, section anchors in autosummary jump to section on current page. Patch by Mark Haidar (Fyren) with slight modifications. 2006-11-17 03:59:32 +00:00
Aryeh Gregor
3a0c45e93c * urlencode username so rollback-on-history works for users with funny names
* Move rollback-link-generating code to Linker::generateRollback
2006-11-16 22:53:01 +00:00
Tim Starling
36ed0cd96c Reverting 17479/17480, breaks subclassing of Linker methods by skins. See my comment on bug 7405. 2006-11-08 07:12:03 +00:00
Nick Jenkins
fa239349f2 * (bug 7405) Make Linker methods static. Patch by Dan Li. 2006-11-08 05:21:15 +00:00
Andrew Garrett
256c6e2c04 (bug 5936) Show an 'm' to the left of the edit summary on diff pages for minor edits. 2006-11-07 13:22:34 +00:00
Tim Starling
e174a4ddfb Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction.
Caches for wikis with table prefixes will be lost on upgrade, caches for wikis without table prefixes will be preserved. Custom cache keys in extensions can be migrated at leisure. Extensions which write to core cache keys should be migrated ASAP, as I have done with Special:Makesysop.
2006-10-04 09:06:18 +00:00
Tim Starling
3005679b0e * Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded. 
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
2006-10-03 13:00:52 +00:00
Tim Starling
43b2fb56b6 Merged localisation-work branch:
* Made lines from initialiseMessages() appear as list items during installation
* Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files.
* Introduced "stub global" framework to provide deferred initialisation of core modules. 
* Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point.
* Added DBA cache type, for BDB-style caches. 
* Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases.
* Simplified the initialisation API for LoadBalancer objects.
* Removed the broken altencoding feature.
* Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface.
* Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled.
* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. 
* Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). 
* Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts.
* Added "serialized" directory, for storing precompiled data in serialized form.
2006-07-26 07:15:39 +00:00
Antoine Musso
93154120cc Remove forced dereferencements (new() returns a reference in PHP5) 2006-07-11 14:11:23 +00:00
Brion Vibber
6f2a8eb640 * (bug 6304) Show timestamp for current revision in diff pages
* Vertically align current version with old version header in diff display
2006-06-18 22:53:35 +00:00
Brion Vibber
4674fa8fa6 * (bug 4280) Use 'noindex,nofollow' instead of 'noindex,follow' for default
meta robots tag on diff view and special pages. Should reduce impact of
  robots on scrolling special pages, diffs etc on sites where robots.txt
  doesn't forbid access.
2006-06-07 00:21:39 +00:00
Domas Mituzas
e6085d6e36 AutoLoad Revision 2006-06-06 10:56:46 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Jens Frank
74cab4ef75 bug 6125 Add links to edit old versions to diff views 2006-05-30 22:06:04 +00:00
Brion Vibber
6e71a93363 * Add 'DiffViewHeader' hook called before diff page output 2006-05-24 09:05:49 +00:00
Niklas Laxström
126591bd0f * Some escaping 2006-05-17 13:26:42 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
c3c2084ee2 Some more PHP5 stuff 2006-05-11 20:24:28 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Brion Vibber
4888b327db Live fix: profiling points for wikidiff2 2006-04-02 03:57:51 +00:00
Rob Church
fcd1cdeb93 * Remove deprecated $wgOnlySysopsCanPatrol references; use User::isAllowed( 'patrol' ) per bug 5282. Patch by Alan Harder. 2006-03-18 16:07:17 +00:00
Lupin
867bd26aa9 unused globals removed 2006-03-18 01:06:57 +00:00
Brion Vibber
103be1dda1 * Further work on rev_deleted; changed to a bitfield with several data-hiding
options. Not yet ready for production use; Special:Revisiondelete is
  incomplete, and the flags are not preserved across page deletion/undeletion.
  To try it; add the 'deleterevision' permission to a privileged group.
Also split some functions from GlobalFunctions to XmlFunctions.php, added
some convenience functions for building form controls, some more Linker
conveniences for formatting various types of standard link clusters.
2006-03-16 19:04:25 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Tim Starling
2d5e24089d Let wikidiff2 do its own segmenting 2006-02-20 06:12:12 +00:00
Tim Starling
630221288a check if the wikidiff2 function exists after loading the extension, in case the extension is corrupt 2006-02-17 04:49:13 +00:00
Tim Starling
7f4e189593 Added support for wikidiff2 and similar external diff engines. 2006-02-09 13:04:20 +00:00
Tim Starling
93f0ae4eed Bug 4916: Make localised text (notably the word "line") work with the diff cache. Doing it this way means it will work with the external diff engine as well. 2006-02-08 22:56:55 +00:00
Brion Vibber
5185b09395 * (bug 4686) Fix regression where ?diff=0&oldid=0 caused fatal error on
pages with only one revision. Fixes message diff link on first edit.
2006-01-23 19:41:03 +00:00
Domas Mituzas
2d23e2a977 Tidy up only article views, previews, image pages and diffs. 2006-01-23 18:37:46 +00:00
Tim Starling
7404ba829a check if Revision::getText() returned without an error 2006-01-19 04:52:18 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Domas Mituzas
7df009ee34 Commit in live site statistic bits 2005-12-26 13:01:18 +00:00
Brion Vibber
264d9ff481 * (bug 349) Fix for some numeric differences not being highlighted
patch by Andrius Ramanauskas
http://bugzilla.wikimedia.org/attachment.cgi?id=1190
2005-12-15 22:41:15 +00:00
Brion Vibber
bcf653c8f9 * (bug 3979) Save correct {{REVISIONID}} into parser cache on edit
* Substitute {{REVISIONID}} correctly in diff display
Removed hook for revision-id override, avar will change his extension to use the new system
2005-11-27 06:04:41 +00:00
Tim Starling
9c9f7fd57f Implemented diff cache 2005-11-15 11:12:21 +00:00
Niklas Laxström
9c88904023 mediawiki:missingarticle to wikitext 2005-10-22 21:33:59 +00:00
Tim Starling
2157b6afbf Fixed resource exhaustion problems due to long lines, e.g. http://en.wikipedia.org/w/index.php?title=New_Zealand&diff=prev&oldid=21847163 2005-08-31 02:22:05 +00:00