Commit graph

249 commits

Author SHA1 Message Date
Roan Kattouw
2e5d1b0c59 Reverting r29798 on the committer's request, part 1 of 2 2008-01-15 16:04:50 +00:00
ThomasV
764238cca2 fix for IE 2008-01-15 15:53:09 +00:00
Huji
2d8a62941c (bug 12608) Unifying the spelling of getDBkey() in the code. 2008-01-14 09:13:04 +00:00
Brion Vibber
b3b309ebb9 * Use only default options when generating RSS and Atom syndication links.
This should help prevent infinite link loops that some software may follow,
  and will generally keep feed behavior cleaner.

Combined duplicate link expansion from OutputPage and SkinTemplate into OutputPage::getSyndicationLinks()
2008-01-12 00:13:53 +00:00
Brion Vibber
7584a85307 Redo r29565, but as far as I see working now. :)
getRestrictions() always returns an array -- just use a standard boolean condition, not is_array().
Marked Title::getTitleProtection() private.
2008-01-11 04:55:48 +00:00
Aaron Schulz
09cfa64fa0 Revert back for now, this is not quite correct 2008-01-10 23:28:08 +00:00
Aaron Schulz
22f1d1c4c2 Don't call getTitleProtection(). That is really just an internal function for a DB query. It shouldn't even by public as it is. Just check 'create' restrictions. This is where they are saved too. 2008-01-10 23:13:45 +00:00
Brion Vibber
49c06d3c73 * (bug 12446) Permissions check fix for undelete link
Patch by  Alexandre Emsenhuber  - http://bugzilla.wikimedia.org/attachment.cgi?id=4483
2007-12-31 21:09:43 +00:00
Andrew Garrett
34d22f6edc * (bug 2919) Allow the protection of non-existent pages using the regular protection interface.
* WARNING: This revision requires a schema change, which is included in maintenance/archives/patch-protected_titles.sql, and can be applied in the normal manner (update.php).
2007-12-11 09:51:56 +00:00
Shinjiman
444d7c8244 * (bug 12259) localize the numbers in deleted pages on the sysop view 2007-12-09 23:49:03 +00:00
Victor Vasiliev
9c97f4ff6f * (bug 943) RSS feed for Recentchangeslinked
* Use $wgFeedClasses instead of hardcoding feed types in OutputPage.php
* Introduce $wgOut->setFeedAppendQuery()
2007-12-08 12:46:18 +00:00
Victor Vasiliev
a3dbd2377a * Remove Special:Randomincategory. Domas said that it will work slowly on big categories (like "Living persons"). 2007-11-12 16:03:34 +00:00
Victor Vasiliev
04bfab85fb * Normalize titles in Special:Randomincategory
* Add link on Special:Randomincategory to sidebar
2007-11-11 14:17:59 +00:00
Niklas Laxström
956f219d89 * (bug 11921) Support plural in message number_of_watching_users_pageview 2007-11-10 14:52:56 +00:00
David McCabe
ec60ccd597 SkinTemplateTabAction hook -- now non-broken. 2007-10-17 03:53:58 +00:00
Brion Vibber
6983ed9cde Revert r26762 -- destroys article and talk tab text. Reversed condition and/or generally broken code. 2007-10-16 20:29:11 +00:00
David McCabe
458016e5ca Added hook to SkinTemplate::tabAction. 2007-10-15 21:12:28 +00:00
Ilmari Karonen
0f6c1e5079 fix minor regression in r26189: users should be able to view the source of default system messages 2007-09-27 20:52:16 +00:00
Ilmari Karonen
7529d1e841 If the page doesn't exist and the user can't create it, omit the "edit"/"view source"
tab entirely (since the user can't edit and there's no source to view).
2007-09-27 20:43:30 +00:00
Brion Vibber
949876a196 Reverting r25772 for now.
The local language names as title are a cute feature, but a few problems:
* It only seems to use the values for the content language for this, though UI language would be more appropriate.
* A hojillion wfMsg() calls are made when Names.php is loaded, which feels kind of icky to me. Would trigger message cache initialization early and does a lot of extra calls not needed 99% of the time.
I'd rather only load values when required.
2007-09-11 15:22:53 +00:00
Raimond Spekking
28a081afb6 * Add function Language::getLanguageNameLocal() for the localized name of a language
* Add localized name of a language as title to interwiki links
2007-09-11 11:45:20 +00:00
Rob Church
41c9a5550f Fix regression in URL-encoding from r23985 2007-07-11 07:29:53 +00:00
Aaron Schulz
051b1a9e1d *Make logs show only for users 2007-07-11 01:26:27 +00:00
Andrew Garrett
f5d76c3682 * Add link to Special:Log into MonoBook toolbox 2007-07-11 00:34:38 +00:00
Brion Vibber
33db268866 * (bug 10316) Prevent inconsistent cached skin settings in gen=js by setting the intended skin directly in the URL.
Not sure whether the global 'skin' and 'stylepath' settings should be removed from the gen=js or from the inline vars, but this fixes the inconsistency between them.
It also fixes the inconsistent use of skin-specific .js files (MediaWiki:Monobook.js loaded for wrong skin, etc).
By passing the skin name directly in the gen=js, we ensure both that we have the correct skin information cached
and that you'll get the JS along with useskin= on an HTML page.

Normally useskin= prevents caching, but RawPage handles its own caching headers, so this doesn't cause any problems here. Doesn't seem to be a performance problem in my quick ab testing either.
2007-07-09 21:39:42 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Brion Vibber
92ac8fe89b * (bug 10113) Fix double-click for view source on protected pages 2007-06-04 19:20:49 +00:00
Ilmari Karonen
2a218dd289 make links to MediaWiki pages blue for messages with default values 2007-05-09 18:41:05 +00:00
River Tarnell
bb5860f557 proper check for useskin parameter 2007-05-09 12:57:26 +00:00
River Tarnell
0e7692a856 useskin=monobook is very sad because generated CSS is for user's default skin and messes up layout. tack useskin=... onto the URL if the user specified it. 2007-05-09 12:54:54 +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
1a60bd4c84 (bug 7958) Special:Cite of older version of an article should use old version id.
Applying Brion's patch, with one-line tweak:
 - uses the existing Skin/$wgOut-based revision ID record, rather than oldid value from WebRequest.
 - additionally sets it to the current revision for parser cache hits (where
   it was not previously needed, since it was only used to feed to parser objects
   to fill the {{REVISIONID}} variable).
 - Explicit declaration of the existing $mRevisionId data member in Skin.
 - "Permanent link" should now work too when paging through historical versions (previously it
   would be greyed out when paging backwards or forwards through old revisions).
2007-05-03 06:08:12 +00:00
Nick Jenkins
bd23ec29c6 Doc tweaks:
* Seems like an opportune time to introduce "@addtogroup Media" documentation tags.
* Merge "@addtogroup Metadata" (used by Exif.php) into "@addtogroup Media".
* Few more moving comment blocks to above classes.
2007-04-24 06:53:31 +00:00
Brion Vibber
b788e0bbac when you misspell in your search and replace, just fix it 'kay? 2007-04-20 15:04:50 +00:00
Aryeh Gregor
c23a79d50e Hyphens in message keys a) improve readability b) don't require me to redo my patch 2007-04-19 22:25:43 +00:00
Ivan Lanin
9a2af87f3e Introduce 'mywatchlist' message; used on personal menu to link to watchlist page. 2007-04-10 10:30:05 +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
Rob Church
3cef4bd67a (bug 4764) "My contributions" not bold when viewing own contributions 2007-04-02 06:27:55 +00:00
Brion Vibber
41c0080abc Revert r20659: accesses private member variables of Article and Revision, and doesn't appear to actually fix the permalink-on-old-version issue to boot 2007-03-28 15:12:05 +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
a74135f787 *Use mRevision if available for permanent link. This id can easily be overrode by rev flagging extensions. 2007-03-24 08:59:04 +00:00
Steve Sanbeg
ec4174f085 When calling edit page for nonexistent section, generate error inside of just discarding edits, since edit links sometimes go to the wrong place. 2007-03-14 18:20:21 +00:00
Aryeh Gregor
f8509539d0 Check whether the username passed to makeTalkUrlDetails is valid to give a clearer error message (can screw up with IPv6) 2007-02-23 04:45:23 +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
Brion Vibber
ac59bf34dd * (bug 8875) Show printable link in MonoBook sidebar for locally nonexistent
pages; perhaps useful for categories and shared images
2007-02-05 17:44:19 +00:00
Rotem Liss
1940eca61a Typo + bug number in comment. 2007-01-28 15:01:09 +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
f5e16ebe09 userCan(Edit|Create|Move) are deprecated : do not use them 2007-01-20 17:58:38 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00