Commit graph

392 commits

Author SHA1 Message Date
Daniel Cannon
8ccb28a453 (bug 10076) Modified so as to output whoever the original blockee is, regardless of whether it is an IP-range or not. 2007-06-02 00:03:22 +00:00
Daniel Cannon
9f12b0d751 Aparently, it need not only be defined but *initialized* to make the warnings go away. Apologies -- I'll check for warnings before committing in the future. 2007-06-01 09:11:52 +00:00
Daniel Cannon
474509113a Fixes for previous commit:
* Forgot to commit RELEASE-NOTES and MessagesEn.php
* Teeny tiny bug -- defined variable $ipRange in an if-block
2007-06-01 09:05:03 +00:00
Daniel Cannon
2aba2fcdaf (bug 10076) If a user is blocked as the result of a rangeblock, add the effective rangeblock to the output of MediaWiki:Blockedtext 2007-06-01 07:57:17 +00:00
Aaron Schulz
17551136ff *Add BeforeGalleryFindFile, TitleLinkUpdatesAfterCompletion, BeforeParserFetchTemplateAndtitle, BeforeParserMakeImageLinkObj, BeforeParserrenderImageGallery; make parser outputs and output page record images -> timestamps used and templates -> revision ids 2007-05-31 16:01:26 +00:00
Antoine Musso
a01392f00c Rename $wgSlaveLagOhNo (r22310) to $wgSlaveLagCritical. 2007-05-24 18:06:21 +00:00
River Tarnell
f5ea63185c "Changes newer than 1 seconds may not be shown in this list." is kind of ridiculous. make the warning and "more obvious warning" thresholds configurable, default 15 resp. 30 seconds. 2007-05-21 23:21:29 +00:00
Rob Church
0c919598c6 * Support passing message arguments to OutputPage::showErrorPage()
* (bug 8818) Expose "wpDestFile" as parameter $1 to "uploaddisabledtext"
2007-05-18 20:46:42 +00:00
Rob Church
8b5fbb8f6e * (bug 9628) Show warnings about slave lag on Special:Contributions, Special:Watchlist - adding this to other pages is quite simple
* A little release notes tweaking
2007-05-18 20:17:53 +00:00
Brion Vibber
ab8d57e44b use $wgStyleVersion in handy-dandy $wgOut->addStyle() func 2007-05-16 19:54:58 +00:00
Brion Vibber
4376a04946 * (bug 1438) Fix for diff table layout on very wide lines.
Diff style rules have been broken out to common/diff.css,
  and the dupes removed from the default skin files.
  Skins can still override the default rules.

Improvements over r22192, now known to work in:
* Firefox 2.0.0.3
* Opera 9.10 and 9.20
* Safari 2.0.4
* Konqueror 3.5.6
* MSIE/Win 7.0 (wide cells may produce vertical scrollbars as well)
* MSIE/Win 6.0 (wide cells are cropped instead of scrolling)
* MSIE/Mac 5.2.3 (wide words break instead of scrolling)
* iCab 3.0.3 (some cells provoke unnecessary horizontal scrollbar)

I've cleaned up the diff table formatting a bit, moving some attributes
from the HTML to the style sheet and consolidating the duplicated styles
into a common/diff.css file which is conditionally loaded for diff views.

Individual skins or site/user CSS can still override that style if they wish.
2007-05-16 17:57:00 +00:00
Ilmari Karonen
183818b0a7 Disable user scripts on Special:Preferences, to prevent a compromised
script from being able to sniff passwords etc.

(The control flow here is hopelessly tangled between OutputPage and
the skins, and it doesn't help that Skin and SkinTemplate do things
differently for no particular reason.  I haven't made any attempt to
untangle it in this commit, but hopefully I at least haven't made it
too much worse.  Cleanup is welcome.)
2007-05-08 20:48:02 +00:00
Nick Jenkins
b4d37577b9 Removing or commenting out unused variables or globals, and adding declarations for two arrays. 2007-05-08 09:09:46 +00:00
Raimond Spekking
a219fbda88 Added a check for "indefinite" if a local customization uses this value in [[MediaWiki:Ipboptions]].
Thanks to Rob.
2007-05-04 05:46:44 +00:00
Raimond Spekking
a23e254774 * (bug 8868) Separate "blocked" message for autoblocks
Patch by Max Semenik
* Adding expiry of block to block messages
  Parameter $6 introduced, this does not break existent localizations
* Use 'infinite' instead of 'indefinite' to be consistent over all message files
2007-05-03 15:40:38 +00:00
Tim Starling
f4f4722521 addHeadItem() method 2007-04-29 10:15:05 +00:00
Aaron Schulz
2276951806 *Use proper number grammar for cascading protection notices (bug 8664) 2007-04-24 01:59:47 +00:00
Brion Vibber
49186d3456 Old cached ParserOutput entries will have null for mHeadItems instead of an array.
We could force them to clear from cache by bumping the parser version, but that
shouldn't be necessary here; just casting to (array) to avoid spewing warnings.
2007-04-06 19:21:35 +00:00
Nick Jenkins
113bb1c772 Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor)
pick up the appropriate tags, and documentation blobs for classes. This is 
the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted.
Please be advised that more related documentation tweaks may follow later - e.g. 
Doxygen generates a log file of warnings that is 574 Kb in size, when run over 
the just the trunk/phase3 code ... eek! Thankfully, much of that is just 
whining about functions without documentation   ;-)
2007-04-04 05:22:37 +00:00
Tim Starling
d3e07758d4 Generic method to add stylesheets and scripts to the header from parser extensions. Using a hook is inefficient since it requires loading the code on a parser cache hit. This feature saves the header text to the parser cache, and writes it to the output with no hook being called. Ugly getScript() hack to make it work with third-party skins. 2007-04-03 21:58:18 +00:00
Rob Church
e55a937093 * (bug 9472) Invalid XHTML on cached query pages
* Use CDATA comment stuff in OutputPage::addInlineScript() as opposed to <!-- -->
2007-04-01 16:10:50 +00:00
Brion Vibber
3a6ac5a3c3 Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.
If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :)
2007-03-28 14:16:43 +00:00
Nick Jenkins
5fef2333d4 PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation tweaking stuff.
Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made:
* @url becomes @link
* @fixme becomes @todo
* HTML tags in descriptions must be closed / balanced.
* @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending)
* @obsolete becomes @deprecated
* Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed
* @access must be a valid access level.
* @desc tag not needed, removed.
* Doesn't seem to like @licence, will accept @license however.
* Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */")

Then additional to this, to get some class docs associated with their respective classes:
* Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers)
* Marked some classes without docs as "@todo document"
* (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory)
2007-03-28 08:53:02 +00:00
Aaron Schulz
f55dcf8e2f *Add framework for proper protection cascading 2007-03-14 22:57:32 +00:00
Brion Vibber
2d5ac3c276 * Add 'charset' to Content-Type headers on various HTTP error responses
to forestall additional UTF-7-autodetect XSS issues. Probably not an
  issue on Apache 2.0+, but most servers send only 'text/html' by default
  when the script didn't specify more details.
    This fixes an issue with the Ajax interface error message on MSIE when
  $wgUseAjax is enabled (not default configuration); this UTF-7 variant
  on a previously fixed attack vector was discovered by Moshe BA from BugSec:
  http://www.bugsec.com/articles.php?Security=24

* Trackback responses now specify XML content type
2007-02-21 01:02:47 +00:00
Raimond Spekking
67dd7e57c5 Remove hardcoded quotation marks to allow better localications 2007-02-16 17:06:27 +00:00
Brion Vibber
6038f9ed00 * Clean up session checks to better handle the case where the session was
opened during the current request. May help with some caching corner
  cases.
2007-02-05 21:42:48 +00:00
Nick Jenkins
6810c86db2 Add $wgStyleVersion string to URL for two Ajax JavaScript source files, so that refresh of them can be forced if/when they are updated. 2007-01-31 03:31:10 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
ce0fb01d05 New hook: AjaxAddScript. Used to load some more ajax javascripts 2007-01-21 16:46:36 +00:00
Antoine Musso
86f4602db0 Indent output when adding links and meta tags 2007-01-21 16:01:50 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
b144fcb85d Rename constructors to __constructor 2007-01-20 13:34:31 +00:00
Aryeh Gregor
3ead3cb165 s/\r\n/\n/ 2007-01-15 04:13:12 +00:00
Tim Starling
10728de893 Fixed diff-related regression, tidy accidentally disabled 2007-01-14 17:37:29 +00:00
Andrew Garrett
a355a684c1 Various, 2007-01-12 09:10:30 +00:00
Andrew Garrett
ff67bbdda8 Various tweaks for last commit, including a merge of the functions to determine if an image/page is cascade-protected; message changes, et cetera 2007-01-12 08:37:07 +00:00
Andrew Garrett
1d95a6efa9 Display MULTIPLE culprit pages for cascading protection in the messages. Also improve performance by separating boolean 'is this page affected by a cascading protection' from array 'who are the culprits for this cascading protection' -- both are cached in member variables of the Title object. 2007-01-12 07:31:34 +00:00
Andrew Garrett
283621653b UI stuff for the cascading protection feature - warnings for sysops editing cascading protected pages (including which page the protection has come from), more useful errors for users (including which page the protection has come from), and a note at the top of the protect page when trying to unprotect a page affected by cascading protection to the effect of 'you can't affect the cascading protection here'. 2007-01-12 04:43:33 +00:00
Brion Vibber
c817e9826b remove intrusive debugging line added in r19111 2007-01-11 23:36:05 +00:00
Ilmari Karonen
d726e2d29c make default system messages show on "view source" 2007-01-11 04:13:11 +00:00
Andrew Garrett
b3a8d488a8 Merge from branches/werdna/restrictions-separation (forked at r18959): * Branch page_restrictions column out into its own table, also creating a 'cascading protection' feature, which automagically disallows edits to pages transcluded into a page protected with this new option. Various other code tidiness fixes and refactoring in the log messages of branches/werdna/restrictions-separation. REQUIRES DATABASE SCHEMA UPGRADE 2007-01-10 23:32:38 +00:00
Antoine Musso
f5020768d2 Implements #7667 : allow XHTML namespaces customization. Patch by Evan Miller 2007-01-07 22:31:07 +00:00
Aryeh Gregor
815a3de2bb Revert the conditional un-including of ajax.js from last commit after conversation with brion on IRC. Will someone think of the poor extensions! 2006-12-27 01:17:55 +00:00
Aryeh Gregor
750e7c1f88 RELEASE-NOTES for last commit, and don't load the AJAX framework if we don't need it 2006-12-27 00:22:34 +00:00
Aryeh Gregor
69ea9bcf9b (bug 7169) Use Ajax to watch/unwatch articles. Patch by Dan Li with some modification by me. 2006-12-26 23:53:34 +00:00
Rotem Liss
2f44de3a1a * Renaming the message 'protectedtext' to 'protectedpagetext', to prevent a duplicate display of the second paragraph due to the saved message.
* Update.
2006-12-18 18:28:33 +00:00
Rob Church
86ae8e1fa7 Er, that should be wfMsg()... 2006-12-18 18:26:57 +00:00
Rob Church
5568143318 * Don't show "you can view and copy the source of this page" message for pages which don't exist (and therefore have no source) 2006-12-18 18:17:37 +00:00
Andrew Garrett
4332912e7e Include the block ID in blockedtext. This way, users can get themselves unblocked without revealing their IP addresses. 2006-12-13 05:44:46 +00:00