Commit graph

3947 commits

Author SHA1 Message Date
Aaron Schulz
2ef08d7d49 Fixed initial as-of cache time shown at Special:ActiveUsers
Change-Id: I97c662a0c2b912924df07bd2cde790535026005c
2014-07-17 12:32:51 -07:00
jenkins-bot
9c3b9ef639 Merge "Fix navigation buttons on Special:Listfiles for first and last page" 2014-07-17 00:20:43 +00:00
Rohan
c4e8e030e4 Fix navigation buttons on Special:Listfiles for first and last page
The listfiles pager was appending the username to the paging queries
for all paging queries. On the first/last page, this was appending
the username to false, thus marking the first/last page as still having
further results despite that not being the case.

Bug: 67627
Change-Id: Ib302a826fa638d7ae25c6d37951277fa8701ab69
2014-07-17 00:14:13 +00:00
umherirrender
ac815f2d4f fix args for messages mergehistory-no-source/-destination
Change-Id: I2502a5056a09ff1373ddfc6a0e59d35aac1647b7
2014-07-16 11:38:09 +02:00
Bryan Davis
b57baa0479 Populate $extensionPath if isset( $extension['path'] )
$extensionPath is initialized to null and then only set when no cached
vcs information was found. Instead set it to the proper value as soon as
we know that $extension['path'] exists. This will fix display of license
file links for most extensions.

Change-Id: I93bfedf3ae0cb7e6f9e077aa1d83906f7a3283b2
2014-07-15 15:50:43 -06:00
jenkins-bot
97dc02ccdb Merge "Add link on Special:Upload to edit MediaWiki:Licenses" 2014-07-15 15:30:55 +00:00
jenkins-bot
93f87e7ad3 Merge "Avoid wfWaitForSlaves() call when in a transaction in ActiveUsers" 2014-07-15 00:04:40 +00:00
Brian Wolff
b7b2917a8b Use htmlspecialchars not htmlentities to escape tags on Version.
htmlentities assumes that the text is iso 8859-1 prior to php 5.4

Also we use htmlspecialchars almost everywhere else.

Bug: 67840
Change-Id: I73364ac34ef7a24c48c09ec1f87102a6cbee8d8f
2014-07-11 19:03:22 -03:00
jenkins-bot
e016f6aa93 Merge "Set autofocus on Special:Unblock" 2014-07-11 14:39:47 +00:00
jenkins-bot
5ca4bea3d3 Merge "Change message on Special:Wantedfiles based on if foreign repo on." 2014-07-10 19:29:55 +00:00
Aaron Schulz
f49907ac0a Avoid wfWaitForSlaves() call when in a transaction in ActiveUsers
* This does not do anything except waste time and connections.
  The query should be small in that case anyway.

Change-Id: I010b3f09be36202ccf408e1a2b084fee0a598ff9
2014-07-09 13:02:29 -07:00
florianschmidtwelzow
a4ce42691c Create valid HTML on Search page
Create valid HTML on search page and close clearing div.

Follows up: If0b6df347315bfe5b6f9a7aa9c6730cbdf44fd38

Bug: 67740
Change-Id: I3ee40b29e54aec91b627fe19de1c685c058aa184
2014-07-09 18:30:59 +00:00
jenkins-bot
2011f7847f Merge "Move white-space: nowrap from PHP to CSS" 2014-07-09 11:00:27 +00:00
jenkins-bot
b3691cdcae Merge "Add delete link to Special:Listfiles" 2014-07-08 23:31:48 +00:00
onei
17a79f1364 Add delete link to Special:Listfiles
The rationale is that the presence of a delete link can make combating
image upload vandalism substantially easier.

The change was originally added in https://github.com/Wikia/app/pull/3859
and is awaiting merger there.

Change-Id: I94b1a2d551093a4ada7aede1ad5af2a23bf86308
2014-07-08 23:22:23 +00:00
Fomafix
009fadeb06 Move white-space: nowrap from PHP to CSS
Change-Id: I5606c33456e70127e0b7b0a7dc8b0c59bab532f4
2014-07-08 17:03:31 +00:00
Fomafix
4bbb700d75 SpecialSearch.php: Remove inline style="margin:0em"
This is already set by
fieldset#mw-searchoptions { margin: 0; }
in mediawiki.special.search.css

Change-Id: I21effce300ab1c699b2715cc50e36b52122dc265
2014-07-08 13:18:23 +00:00
Chad Horohoe
9ec0eb69f2 Include redirect/section information in file search results
Change-Id: I51c5ae99ab70a610a64f510b8cc522f0d9025efa
2014-07-07 13:00:45 -07:00
jenkins-bot
2b98ff1297 Merge "Do not include file redirects in Special:Wantedfiles" 2014-07-06 18:32:39 +00:00
Alexandre Emsenhuber
3185f1271f Remove tabindex from the drop-down in Special:RevisionDelete
It is the only element in the form which has this attribute set,
so the tab order was not correct.

Bug: 67271
Change-Id: Ifa8fb91f9bf7a60e727ec7376d2bc3a851007634
2014-07-06 10:06:26 +00:00
Kevin Israel
9da9183d58 Only list Special:CreateAccount as restricted if configured so
Bug: 67549
Change-Id: I433d825d99878f385c607346bed92b01a79d9a21
2014-07-05 16:42:55 -04:00
Rohan
54a48ef1b2 Disables upload by url option for users without the necessary permissions
Does an explicit check for a true value in SpecialUpload::getSourceSection

Bug: 39507
Change-Id: I00297494230d07081dd85a810321446badc3ecb0
2014-07-05 18:20:27 +00:00
Chad Horohoe
d09ab9001f Don't link to PHP @ php.net when running HHVM
Change-Id: Ifdec12e093fdd29d76ccb4b9e3ec58a6bceb47ed
2014-07-03 18:03:41 -07:00
jenkins-bot
6038393b1e Merge "Add ids to the old link and the new link at the move result" 2014-07-03 17:12:07 +00:00
jenkins-bot
fac6e7d7b4 Merge "SpecialSearch: Fix overlap between results info and search bar" 2014-07-03 15:42:10 +00:00
Amir E. Aharoni
dabf3219d6 Add ids to the old link and the new link at the move result
This is immediately useful for building a GuidedTour
for moving a page, and can be useful for other things as well.

Change-Id: I2765248f61ecd3089a9f4e06571a378e39ec1db3
2014-07-03 17:53:41 +03:00
Brian Wolff
0f4a61750e Change message on Special:Wantedfiles based on if foreign repo on.
If foreign repos are off, no need to warn about false positives.

I mostly want this change for an upcoming change I'm making in
GlobalUsage - I660a61327cdb528

Change-Id: Ibcf63d48c50523722ce8384fa6b4b1f68524482c
2014-07-03 04:38:12 -03:00
Brian Wolff
ce6e0e2348 Do not include file redirects in Special:Wantedfiles
If you look at [[Special:WantedFiles]] on commons, its full
of file redirects, making the page kind of useless. This makes
the query much more complex, but at least the page will be useful.

The page will still be useless on non-commons projects due to
foreign files being listed as missing.

Change-Id: I115fdaa3b67bee81ba0a715ebb427bb35cf0f67e
2014-07-03 00:59:12 -03:00
jenkins-bot
b4ed05d6a2 Merge "Don't use rclimit preference on Special:Search" 2014-07-02 22:18:04 +00:00
jenkins-bot
af58c12759 Merge "Make the URL input on Special:LinkSearch ltr by default" 2014-07-02 14:07:28 +00:00
Chad Horohoe
3f87aaea96 SpecialSearch: Fix overlap between results info and search bar
Followup to 1896d06, lost a clear:both in the process.

Bug: 67184
Change-Id: If0b6df347315bfe5b6f9a7aa9c6730cbdf44fd38
2014-07-01 18:35:08 -07:00
jenkins-bot
460213619e Merge "SpecialSearch: Fix pagination" 2014-07-02 00:04:55 +00:00
Brad Jorsch
bb3e01947f Properly count actions in Special:ActiveUsers
The cache of active users maintained by Special:ActiveUsers filters out
certain actions, but the displayed action count does not. Fix this.

Change-Id: Ifb9035a08328587c43c46520c5062602b9b9c6f5
2014-07-01 15:55:43 -04:00
Chad Horohoe
82afee57ef SpecialSearch: Fix pagination
This basically reverts f4357b6 but fixes it while we're here. Requesting
one extra result causes extra load and weird queries against the search
backend...all to be thrown away. Plus it's showing "Results 1-21 of N"
when we're only showing 20 which is a regression.

All search backends implement getTotalHits() so use that count instead
to figure out if we're on the last page.

Change-Id: Ib38b1e124bea7133f48209ef8af1b1e26b4dba75
2014-07-01 12:38:22 -07:00
umherirrender
4bc8a7740b Add SpecialPagesWithProp::prefixSearchSubpages
This shows the existing props as subpages on search suggestion

Change-Id: I3d35474bcf840a6feede8079642d83074874c6f3
2014-06-30 21:17:11 +00:00
JuneHyeon Bae
4cebf7f4f0 Do not show user blocked warning on included Special:Contributions page
When user included {{Special:Contributions}} page of blocked user,
do not show "this user is blocked" box.

Bug: 65781
Change-Id: I13b80f829dd26bf960b16efea588618c36898a5d
2014-06-30 21:44:21 +02:00
jenkins-bot
69ae6a4c96 Merge "Salt the "nsToken" used for Special:Search namespace remembering" 2014-06-30 19:27:58 +00:00
Amir E. Aharoni
d8eb95a0f5 Make the URL input on Special:LinkSearch ltr by default
Change-Id: I77d74367375fc72e21bf16007cd6a48a2b7cd3e3
2014-06-29 12:39:27 +03:00
umherirrender
018ae52460 Set autofocus on Special:Unblock
Replaced the tabindex=1 with autofocus to have the cursor in the target
field. This is than also the start for tabs and therefor no tabindex is
needed.
In case of a valid block the autofocus is moved to the reason field,
because the target field gets hidden.

Change-Id: I1c35f546ad22907ab824b6c51fd65655f1a91a96
2014-06-29 08:46:01 +00:00
robin
7845551c16 Add link on Special:Upload to edit MediaWiki:Licenses
Add a link below the licenses selector to edit those license options (if allowed to),
similar to links on the block, delete and protect forms.

Change-Id: Iff11d114cb1bfbc2c17de44369c482cee846ed9d
2014-06-28 22:22:06 +02:00
Alexandre Emsenhuber
4d41aef7ea Remove unneeded else brach from SpecialAllMessages::execute()
Spotted while reviewing I49cf4f294a (8b4c170)

Change-Id: I5b18106bbd892a22c0d48aefecc1ae246b577480
2014-06-28 21:59:35 +02:00
Reedy
a3107aee5f De-globali[sz]e AllPages and Prefixindex
Change-Id: I2ea969b3bf2573448562fd98b9306997bcfcfea4
2014-06-28 12:17:55 +00:00
Reedy
8b4c1706e9 De-globali[sz]e Special:Allmessages
Change-Id: I49cf4f294a6543c7ee9ca56d9d6e9635996de30d
2014-06-28 12:12:50 +00:00
Kunal Grover
50144cd02a First version of Page Language selector
Special page PageLanguage to set the page language of a page.
To enable the feature, set $wgPageLanguageUseDB to true
and assign the 'pagelang' user right to a user group.

Bug: 35489
Change-Id: I0f82b146fbe948f917c1c5d29f7469644d797e80
2014-06-27 23:27:07 +00:00
Brian Wolff
50f849eb4e Salt the "nsToken" used for Special:Search namespace remembering
Token is used as a GET parameter, so we shouldn't use the raw edit
token.

Bug: 67210
Change-Id: Ie69d9f6557eb9a08b21361aad0ed95bee994c05f
2014-06-27 16:11:22 -03:00
PiRSquared17
2b438eb5c1 Show block notice on contribs for range-blocked IP
Also on deleted contribs, user, user talk pages.

Bug: 20790
Change-Id: I3ed9cb56f91b52fdb0ba452422f9d0723e9abe41
2014-06-26 15:52:21 -07:00
Bartosz Dziewoński
e845151283 SpecialVersion: Grammar fixes in comments
Change-Id: I318a34edcb14d57b77353f3112d82e2e3c97fd7f
2014-06-26 22:44:52 +02:00
Bartosz Dziewoński
d423112b7f SpecialVersion: Show 'Skins' and 'Extensions' in separate sections
Change-Id: Ifa4aa1a2ad31228b4bff833f34727e80e19b9ae3
2014-06-26 17:35:23 +00:00
jenkins-bot
3dde137144 Merge "SpecialJavaScriptTest: Implement prefixSearchSubpages()" 2014-06-26 15:51:05 +00:00
jenkins-bot
a249073d37 Merge "SpecialPage: DRY array filter for prefixSearchSubpages()" 2014-06-26 15:44:29 +00:00