Commit graph

186 commits

Author SHA1 Message Date
Brion Vibber
af2df5002f * (bug 2548) Keep summary on 'show changes' of section edit 2005-06-29 08:37:46 +00:00
Jens Frank
4c644ded9e Fix preview 2005-06-29 05:30:50 +00:00
Jens Frank
e6f5fda4f6 Fix preview 2005-06-29 05:30:20 +00:00
Jens Frank
04b5f9ec0f (bug 2564) Don't show editingold warning for recent revision 2005-06-29 05:15:32 +00:00
Brion Vibber
5a3133d4d8 * Don't show empty-page text in 'Show changes' on new page
Changed $noredir on Article::fetchContent() to a more reasonable default.
2005-06-29 00:31:07 +00:00
Brion Vibber
0226b12c83 * (bug 2572) Fix edit conflict handling 2005-06-28 23:19:56 +00:00
Antoine Musso
a4c147a63e Fix #1242: category list missing on edit page 2005-06-27 00:06:30 +00:00
Antoine Musso
9acf675938 quotes 2005-06-26 23:15:39 +00:00
Jens Frank
b909a6217a (bug 2496) Allow MediaWiki:edithelppage to point to external page 2005-06-25 21:32:11 +00:00
Brion Vibber
a2a28a34c1 * (bug 996) Replace $wgWhitelistEdit with 'edit' permission; fixup UPGRADE documentation about edit and read whitelists.
Patch by robla: http://bugzilla.wikimedia.org/attachment.cgi?id=645&action=view
plus doc fixes
2005-06-25 06:24:46 +00:00
Brion Vibber
528842e3a5 * (bug 2053) Move comment whitespace trimming from edit page to save;
leaves the whitespace from the section comment there on preview.
2005-06-01 08:18:34 +00:00
Brion Vibber
fe40fe9da8 * Replace wfMungeToUtf8 and do_html_entity_decode with a single function
that does both numeric and named chars: Sanitizer::decodeCharReferences
* Removed some obsolete UTF-8 converter functions
2005-05-31 11:54:36 +00:00
Anders Wegge Jakobsen
c132234fce Reduce the risk of dropping edits during conflict resolution 2005-05-28 12:21:56 +00:00
Brion Vibber
e46d19e72d * Simple rate limiter for edits and page moves; set $wgRateLimits
(somewhat experimental; currently needs memcached)
* Pretty up HTTP error output a bit (HTML instead of text/plain)
* Genericise DNS blacklist support a bit, func for Blitzed OPM
  (not yet used)
2005-05-27 11:03:37 +00:00
Brion Vibber
fe2ac1409b Revert __LCFIRST__ patch. Title objects should be treated as value objects;
any Title object for a given title should always act the same. Poking around
with the guts of one to change some of its return values is not a good idea.
2005-05-15 20:42:11 +00:00
Ævar Arnfjörð Bjarmason
71f1c34ce4 * (bug 2118) Added a __LCFIRST__ magic word for forcing the first character of
a pages heading to render in its lower case form on output, however the page
  is still saved under its upper case name in the database so this is purely an
  aesthetic change (unlike setting $wgCapitalLinks to false).
2005-05-15 17:21:58 +00:00
Brion Vibber
507f224420 * (bug 2176) Section edit 'show changes' button works correctly now 2005-05-15 11:11:23 +00:00
Tim Starling
554bbccf31 Attempting to get enotif into working order. Many aesthetic changes, a fair number of bug fixes too. There's also a couple of non-enotif bug fixes in this commit somewhere. 2005-05-14 17:55:04 +00:00
Brion Vibber
1f806faa0f * (bug 2150) Fix tab indexes on edit form 2005-05-12 08:28:26 +00:00
Ævar Arnfjörð Bjarmason
2880bdfb8e * (bug 2064) Configurable JavaScript mimetype with $wgJsMimeType 2005-05-05 21:00:49 +00:00
Ævar Arnfjörð Bjarmason
788be4d948 * (bug 1989) Some messages converted to use addWikiText(), patch by Niklas Laxstr��m 2005-05-04 02:05:21 +00:00
Ævar Arnfjörð Bjarmason
6a98f3921b * Removed   that was used as spacing for one of the buttons, looks bad in
Konqueror and CSS is the right place to do this.
2005-05-03 20:27:34 +00:00
Brion Vibber
cd4bb80e48 Forgot one of the wfEscapeJsString()s 2005-04-30 09:13:44 +00:00
Brion Vibber
589073078d * (bug 1877) JavaScript error in page editing in some localizations
Add wfEscapeJsString() function to do proper escaping of JavaScript string literals.
2005-04-30 08:04:02 +00:00
Brion Vibber
af70c28938 Restore htmlspecialchars() on the editToken value before outputting to HTML.
While at the moment the editToken() value is safe for literal inclusion is HTML output, it's a black-box value to the rest of the code and such safety is not guaranteed. Escaping text values being placed in HTML/XML attributes or text elements is a regular part of the output process and it's a bad habit to leave it out on text values that are produced elsewhere; they can and do change (such as all those localized messages which are now user-editable...)
2005-04-28 23:06:47 +00:00
Ævar Arnfjörð Bjarmason
089b70e430 * Edit token no longer passed through htmlspecialchars()
* Removed getDiffText() (not used)
* Syntax
2005-04-28 20:44:26 +00:00
Brion Vibber
86ae933601 * (bug 1982) Fix loading of old text for section merging on edits. 2005-04-26 09:52:11 +00:00
Jens Frank
0267606f57 Code cleanup. Database code should not be in EditPage.php. Moved to Article.php 2005-04-03 07:01:29 +00:00
Antoine Musso
18b5166c22 Implements #1714 by Tomer Chachamu : add   after save button 2005-03-30 09:26:48 +00:00
Brion Vibber
6f5560867c Start removing the Latin-1 hacks. We're going pure UTF-8 for 1.5... 2005-03-26 22:23:48 +00:00
Brion Vibber
fad4b5928d * Move editsectiononrightclick setup to JavaScript (it requires JS anyway)
This lets us use the same parser cache for both settings of this option.
2005-03-25 12:37:19 +00:00
Jens Frank
65f73f9a25 fix broken sidebar 2005-03-19 12:04:00 +00:00
Jens Frank
78376fe0a4 BUG#15 Allow editors to view diff of their change before actually submitting an edit 2005-03-19 12:01:57 +00:00
Erik Moeller
ea98b0188a use wfMsgForContent for copyright policy link on edit page since it is
probably going to point to the same page regardless of user language
preference (is also used in other calls). Note that many language files
don't use the proper format and instead have the license hardcoded, so
this won't have any effect on them.
2005-03-18 14:13:58 +00:00
Evan Prodromou
d63d4248a6 Changed the calling protocol for function wfRunHooks() in Hooks.php.
Previously, this function used variable arguments to allow
different hooks to pass different parameters. However, var args
silently convert reference-calling to value-calling. So a call
that used to work like this:

    # old
    wfRunHooks('SomeEvent', $param1, &$param2, $param3);

...now works like this:

    # new
    wfRunHooks('SomeEvent', array($param1, &$param2, $param3));

Hook functions can now change pass-by-reference parameters correctly
(e.g. $param2 in the above example).

All calls to wfRunHooks() were changed and tested, and the change
was documented in docs/hooks.doc. This change was originally checked
in on REL1_4 branch as a bugfix, but per vibber reverted and checked
in to HEAD instead.
2005-03-13 15:29:43 +00:00
Brion Vibber
abc85cfa9e Kill a couple of <font> tags 2005-02-25 09:13:03 +00:00
Brion Vibber
014a1d1bab Cruft war continues: more uses of isAnon() and isLoggedIn() 2005-02-21 12:46:37 +00:00
Brion Vibber
388d95d7b8 De-cruftification continues.
* Replacing Namespace:: functions with NS_ constants
* Replacing make*Link() on strings with make*LinkObj() on Title objects
* Using more legible convenience methods on User and Title
* Start using a common Linker::commentBlock() to wrap the formatComment() bits in the surrounding formatting
2005-02-21 12:23:52 +00:00
Nicolas Weeger
ee1fc77f73 Patch for bug #1138 (ipblock-related) 2005-02-17 22:56:51 +00:00
Brion Vibber
1c5d0e8218 Revert last checkin by Nicolas Weeger which massively corrupted the file. 2005-02-15 00:24:49 +00:00
Nicolas Weeger
4d11f7c2d3 Fix for bug http://bugzilla.wikimedia.org/show_bug.cgi?id=1138 (ip block related).
New behaviour: check slave when user asks for the edit page, nothing when previewing, master when saving the page. Don't use memcache, as apparently it was causing issues.
2005-02-14 23:21:07 +00:00
Brion Vibber
0c3dc9223f * (bug 1430) Don't check for template data when editing page that doesn't exist
patch from zigger
2005-02-06 07:28:21 +00:00
Brion Vibber
7030f69a1a Security tweaks:
* Leave user CSS/JS off by default
* Tighten user CSS/JS preview activation
* Require logged-in edits to include an extra session credential
* ogg removed from default upload whitelist
2005-02-04 06:19:37 +00:00
Brion Vibber
c5604eb2bb * (bug 1458) Don't save if form submission seems incomplete
Under some circumstances the old code may have saved when an incomplete preview request was missing the final form fields. Now a preview is forced if wpEdittime (the last field listed in the form) is not submitted. (Normally that would force an edit conflict anyway, but when the current user is the last editor this is ignored.)
2005-02-03 11:26:23 +00:00
Jens Frank
9657edb9ba Removed unused variable mbegin. 2004-12-31 14:53:56 +00:00
Magnus Manske
3455ae4c25 metadata title 2004-12-29 15:18:12 +00:00
Magnus Manske
aed28545ba reads whitelist from database 2004-12-29 14:39:43 +00:00
Magnus Manske
3eccb22403 separate metadata editor, pre-alpha 2004-12-29 13:46:10 +00:00
Zheng Zhu
a8dc15b83b fix first parameter of the ArticleSave* hooks 2004-12-27 01:40:48 +00:00
Brion Vibber
11af806c19 * Fix revert bug caused by bug 1175 fix 2004-12-24 09:51:36 +00:00