| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I investigated the available parameters and considered which could be
plausibly useful for Special:MyPage and Special:MyTalk, and there are
quite a few. See inline documentation for a list of them. More could
potentially be added in the future if a use case is discovered.
This patch also make it possible for extensions to add their own
parameters to this list, through the new hook:
RedirectSpecialArticleRedirectParams
It has at least one application - with FlaggedRevs, it's desirable to
pass the "stable" flag through Special:MyPage. It also makes it simple
for individual servers that have some special reason to pass on a
particular parameter to do so in LocalSettings.php, simplifying
upgrades.
Change-Id: I3101fbe2eba8712b87a53706583f4e8f3e907478
|
|
|
|
|
|
| |
Danwe apparently needs them :)
Change-Id: Ic74c7ba7f4168d2b0cfbd3c4e551218f6cb2693a
|
|
|
|
|
|
|
|
| |
The old entry point is the execute method, which clearly is not meant to be an entry point,
as it's overloaded in most subclasses, making it impossible for the deriving classes to do anything
before or after (which for instance sucks big time in SpecialCachedPage).
Change-Id: I74c22a1dc3b1a9d062295d5fb709fb87577810ae
|
|
|
|
|
| |
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"
This reverts commit ee0d3d330f76b97c451c168dc9b052ee84609b5b
|
|
|
|
|
|
| |
help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
|
|
|
|
|
|
|
|
|
| |
Replaced isBlank() with isDisabled() in SpecialPage::outputHeader.
This allows disabling the default headers (*-summary).
Patch set 2: Hid recentchangestext if nothing is written there.
Change-Id: Id3ec2aeb1fab00344908b7bff01929bdafbfd08f
|
|
|
|
|
|
| |
Also made file/class documentation more consistent and removed a duplicate comment from SpecialPageFactory.php in SpecialPage.php.
Change-Id: I99dd2de7fe461f2fad4e0bd315ebc2899958a90f
|
|
|
|
|
|
| |
Fix docs on getGroup
Change-Id: Ia5f29013e01eee3b97dc755486175c21c5e24f4f
|
|
|
|
|
|
|
|
|
| |
and set it to false when the page is included.
The point is to have the fix applied to all usages of IContextSource::msg() calls instead of only SpecialPage.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113745
|
|
|
|
|
|
|
| |
I haven't checked if there are other places whereh context is set to Message class, but if there are they might need a fix too.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113223
|
|
|
|
|
|
|
|
|
|
|
| |
url parameter to target page. Useful for inputbox extension.
Patch by Bagariavivek.
Perhaps should go through [[Manual:Parameters_to_index.php]] and add anything that's sane to the allowed list, at some point.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/112967
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111605
|
|
|
|
|
|
|
|
|
| |
bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111052
|
|
|
|
|
|
|
|
|
| |
Add braces
Explicitly define member variable
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/107235
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106421
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106173
|
|
|
|
|
|
|
| |
PHP Notice: Use of SpecialPage::getPage was deprecated in MediaWiki 1.18. [Called from SFFormLinker::getFormEditLinkForPage in /www/w/extensions/SemanticForms/includes/SF_FormLinker.php at line 207] in /www/w/includes/GlobalFunctions.php on line 3520
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106080
|
|
|
|
|
|
|
| |
functions so doxygen will pick them up
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106079
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106070
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/104011
|
|
|
|
|
|
|
| |
I'll be amazed if this doens't break any tests.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103817
|
|
|
|
|
|
|
| |
think the error is temporary in case he doesn't have the permission and the database is in read only mode
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103204
|
|
|
|
|
|
|
| |
Replacing some code in SpecialPageForm to use these new functions
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103111
|
|
|
|
|
|
|
| |
SpecialPage classes.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103095
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/102104
|
|
|
|
|
|
|
|
|
| |
When Special:Permanentlink was not given any parameter it assumed oldid=0
and redirected to the Main_Page. This make it throw an error page instead.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/101478
|
|
|
|
|
|
|
|
|
| |
[27-Oct-2011 05:51:24] PHP Notice: Found alias defined for Listadmins when searching for special page aliases for ListAdmins. Case mismatch? [Called from SpecialPage::getLocalName in /www/sandwiki/includes/SpecialPage.php at line 464] in /www/sandwiki/includes/GlobalFunctions.php on line 3378
[27-Oct-2011 05:51:24] PHP Notice: Found alias defined for Listadmins when searching for special page aliases for ListAdmins. Case mismatch? [Called from SpecialPage::getTitleFor in /www/sandwiki/includes/SpecialPage.php at line 261] in /www/sandwiki/includes/GlobalFunctions.php on line 3378
[27-Oct-2011 05:51:24] PHP Notice: Found alias defined for Listusers when searching for special page aliases for ListUsers. Case mismatch? [Called from SpecialPage::getTitleFor in /www/sandwiki/includes/SpecialPage.php at line 261] in /www/sandwiki/includes/GlobalFunctions.php on line 3378
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100947
|
|
|
|
|
|
|
| |
FormSpecialPage. The former handles actual execute() calls and throws exceptions, the later inherits its purpose from SpecialPage. It just checks the page restriction to see if a user generally *could* execute. This avoids the breakage that came up in r100723 where Special:SpecialPages was throwing permission errors due to the getUsablePages() call.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100795
|
|
|
|
|
|
|
| |
does not need to depend on $wgUser; updated the only call to it
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100032
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100029
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Special:Mypage redirects
Found that Special:MyPage was sometimes being used in importScript() calls to make references to the owner's other user subpages, such as loading a User:Blah/monobook.js from User:Blah/vector.js.
The importScript() correctly included action=raw and ctype=text/javascript parameters, but Special:MyPage was redirecting to the actual URL and dropped the ctype parameter.
IE 9 actually now validates content-type for scripts loaded into <script> -- if and only if you send X-Content-Type-Options: nosniff. Since we now do that (since bug 15461 / r87997) this created a break for IE9 users when upgrading from MW 1.17 (without the nosniff) to MW 1.18 (with it).
Can also work around by replacing the Special:MyPage reference with a direct one.
No other browsers I tested (Firefox 8, Chrome 14, Opera 11.5) rejected a <script> load for text/x-wiki but it's a legit thing to do (Firefox does check for CSS)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/99067
|
|
|
|
|
|
|
|
|
|
| |
According to online PHP docs, func_get_args() doesn't work in function parameter lists until PHP 5.3.0.
It does, however, work as the *first* parameter, which happens here and there in older code (eg array_slice(func_get_args(),1)).
Assigning to a variable and passing through works fine for this case on PHP 5.2.17.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/98598
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/98408
|
|
|
|
|
|
|
| |
instanceof checks. All we need is something that implements IContextSource and it's possible we may want to implement types of RequestContext that don't directly extend RequestContext but are perfectly valid to be passed to classes.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/97159
|
|
|
|
|
|
|
| |
signature. Removed the function rather than updating it, since it's not called at all and current behavior is incompatible with the old one.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94619
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94548
|
|
|
|
|
|
|
| |
default value, only use private if you have some reason to. Avoids most of the breakage in out of tree extensions.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93368
|
|
|
|
|
|
|
| |
directly ..."): breaks a test (specifically TitlePermissionTest::testUserBlock()). From what I can tell it looks like the test case is expecting the text of the infinite-block message, but got a Message object instead
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93321
|
|
|
|
|
|
|
|
|
| |
Only one occurence in Core : SpecialRandompage.
Extensions are done in a following commit.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93249
|
|
|
|
|
|
|
| |
$mBlock directly. Also fixes r85951 CR, and remove code duplication in Title::checkUserBlock().
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93237
|
|
|
|
|
|
|
| |
weird, was undocumented, and is unused by extensions.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/92898
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/92498
|
|
|
|
|
|
|
| |
* Wrap arround RequestContext::msg() instead of doing that all that stuff once more
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91677
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90929
|
|
|
|
|
|
|
|
|
|
| |
C:\wamp\www\MW_trunk\includes\SpecialPageFactory.php on line 318'
* Made use of $this->getUser() with special pages rather than wgUser
* Broke long lines
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90905
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90861
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89875
|
|
|
|
|
|
|
| |
of magic __get() accessor for RequestContext)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89794
|
|
|
|
|
|
|
| |
Refactor out duplicate code to SpecialPage
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89568
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cleanup before applying code like this
Per CR http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89406#c17545 :
'Here is a third one: Strict Standards: Only variables should be passed by reference in /www/sandwiki/includes/Wiki.php on line 177 '
Offending bit is this:
- SpecialPageFactory::executePath( $this->context->title, $this->context );
+ SpecialPageFactory::executePath( $this->getTitle(), $this->getContext() );
That function demands reference paramters for $title and $context, which is being violated here where we now pass function return values:
public static function executePath( Title &$title, RequestContext &$context, $including = false ) {
The $title does sometimes get replaced within the function body, but $context does not appear to ever be replaced (its *contents* are modified, which does not require passing by reference)
If replacing it is something it should be doing, then we need to be able to replace it upstream presumably, so $this->getTitle() probably isn't appropriate.
The $context probably should have the reference simply removed.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89430
|