| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
There was no clean way to do this but using the global state.
The parameter is three-state to keep backward compatibility.
Bug: T304428
Change-Id: I01c5f8e9646cbe861516100c3b8d165aefb95ca0
|
|
|
|
|
|
|
|
|
| |
Copy the Renameuser extension into core, with minimal code changes. The
hook handlers are inlined into Article, SpecialLog and
SpecialContributions.
Bug: T27482
Change-Id: I314021f4138773df6aaf2753b33ab8283cd16974
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is moderately messy.
Process was principally:
* xargs rg --files-with-matches '^use Title;' | grep 'php$' | \
xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1'
* rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \
xargs rg --files-with-matches 'Title\b' | \
xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1'
* composer fix
Then manual fix-ups for a few files that don't have any use statements.
Bug: T166010
Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a
Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
|
|
|
|
|
|
|
| |
And WikiReference
Bug: T321882
Change-Id: I60cf4b9ef02b9d58118caa39172677ddfe03d787
|
|
|
|
|
| |
Bug: T321882
Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18
|
|
|
|
|
|
|
|
| |
Also moving TemplatesOnThisPageFormatter to the same namesapce as it's
only used by EditPage
Bug: T321882
Change-Id: Ibefc44eb64aedb430148b109090584c3e35794ab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The currently supported groups are documented in database.md.
While at it, prefer the string form of the $groups parameter where
possible, since the complexity of an array is never utilized, as the
groups either can't overlap, or are decided on by the caller instead.
This also helps with the simpler LBFactory::getConnection() proposed
in T326274.
Bug: T263127
Bug: T326274
Change-Id: I7a31a07a8c3f1e265ac43ab59f23326590b407c3
|
|
|
|
|
|
|
|
| |
A series of minor documentation fixes I collected in my local
dev environment over the past months. I'm not sure if it's worth
splitting this further.
Change-Id: I1ef383b40271f1513cb03d0de1fe511f4ca51ada
|
|
|
|
|
|
|
|
| |
Similiar to the handling for suppressed edits since b6f148b
Bug: T327538
Follow-Up: I08f14f712479e1b170c606e2b64857f8386acd76
Change-Id: Icfb46d9ef02984510ef1c2c5e4785345cbe6ad2f
|
|
|
|
|
| |
Bug: T325610
Change-Id: I43a5bde7ae54af7ab0c817df5eab8234a2c41564
|
|
|
|
|
|
|
|
| |
Also, added a parameters to XmlDumpWriter so that they could be
inject via WikiExporter.
Bug: T325475
Change-Id: I84b82506509e2c09dad0691af2df958a5af5b5b0
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: T323104
Change-Id: Id3bfe52b8b55ac304b6b85e14951c3dbd16aa7d9
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
so that extensions (i.e. CheckUser) can implement their own comment
store without having a lot of code duplication
basically the comment store version of I3a6486532f2ef36
Bug: T233004
Change-Id: Ib40f99e00a514d41776ce521baf113e46d37e9cd
|
| |
| |
| |
| |
| |
| | |
New feature from PHP 7.4
Change-Id: Ifa7a9bc7b2ec415ad7ecb23f4c1776f51f58fd6b
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The motivation is to make the code less confusing. I hope this is the
case.
?? is an older PHP 7.0 feature.
??= was added in PHP 7.4, which we can finally use.
Change-Id: Id807affa52bd1151a74c064623b41d950a389560
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Bug: T324906
Change-Id: I8cf96c3b7a03127ce1243f7a7e849b6d5a5d3dfa
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Adding a checkbox that is passed through to the backend that allows
to filter entries out based on a tag.
Bug: T174349
Change-Id: I42c4671def335401da93789f304eb093c07c8190
|
| |
| |
| |
| |
| |
| |
| | |
This feels like a no-brainer unless I'm missing something obvious
Bug: T321882
Change-Id: Id49c3d0dd6ea4593211048850856b5b8e05a8fb3
|
|/
|
|
|
|
|
| |
The 'pattern' field is related to the page field, and should be put
right after it.
Change-Id: Ifc3837f244d2a159bbf2bb85fe237155ef449579
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: T321988
Change-Id: I09284cf5337e7fc548667a2e5b890c2a70cb8095
|
| |
| |
| |
| |
| |
| | |
Doc-only changes
Change-Id: I5177f582ae7ee70c357e9389fed14819faf79463
|
|/
|
|
|
|
| |
Related to I29399e7.
Change-Id: Iafa1fcac95f9b7a6cbc3a8ae9d4aff825acb302d
|
|
|
|
|
|
|
|
|
| |
This reverts commit 2bdc0b2b7209441a42a784157633a8a01b321922.
Reason for revert: T166010#8349431
Bug: T166010
Change-Id: Idcd3025647aec99532f5d69b9c1718c531761283
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moving:
- DerivativeRequest
- FauxRequest
- FauxRequestUpload
- PathRouter
- WebRequest
- WebRequestUpload
Bug: T166010
Change-Id: I5ea70120d745f2876ae31d039f3f8a51e49e9ad8
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sorting on log_id must not give a result in time order,
because maintenance scripts can insert newer ids with older timestamps.
When only sorting for log_timestamp the result is not stable,
because for items with same timestamp the order is not defined.
For Special:Log the same timestamp gives problems on pagination
Bug: T305590
Change-Id: Ic0c2ebd19ee6a8aa570c5a12a92b31008135491c
|
| |
| |
| |
| |
| | |
Bug: T166010
Change-Id: Idcf0e9dc6e0841e4f132207bce0f96774dad898c
|
| |
| |
| |
| |
| |
| |
| |
| | |
Introduced in PHP 7.1. Because it's shorter and looks nice.
I used regex replacement.
Change-Id: I0555e199d126cd44501f859cb4589f8bd49694da
|
|/
|
|
|
|
|
|
|
|
|
| |
HTMLMultiSelectField requires this for forms submitted by GET
that have checkboxes that default true.
Previously on special:log it was impossible to deselect all
options under "show additional logs".
Bug: T321154
Change-Id: Iacc7beb4363eb756675ff71e6efed706f88fd45b
|
|
|
|
|
|
|
|
| |
This patch only adds and removes suppressions, which must be done in the
same patch as the version bump.
Bug: T298571
Change-Id: I4044d4d9ce82b3dae7ba0af85bf04f22cb1dd347
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly, document some parameters as non-empty-array so that phan knows
the list of arguments won't be empty when unpacking.
In EditPage, account for hooks potentially unsetting the copyright
notice.
Also rewrite some code in LogPager, so it's hopefully easier for phan to
understand what's going on.
Change-Id: Ic0638571554424098d0743db32dd46723a08e103
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follows similar commits to the objectcache, rdbms, filerepo,
jobqueue components and other areas [1].
* Remove duplicate descriptions from file blocks in favour of class
doc blocks. This reduces needless duplication and was often
incorrect or outdated, and helps (ironically) to make the file header
more consistently visually ignorable.
* Remove `ingroup` from file blocks in class files as otherwise
the file is indexed twice (e.g. in Doxygen) which makes navigation
more messy.
* Fix non-standard `@unstable for implementation` annotations
in favour of `@stable to type` as per T257789 and
<https://www.mediawiki.org/wiki/Stable_interface_policy>.
While at it, fix the only other outstanding uses of `@stable for`
in core as well in a handful of context/, logging/ and search/
files.
[1] https://gerrit.wikimedia.org/r/q/message:ingroup+owner:Krinkle
Bug: T257789
Change-Id: Ided3c5ab69e1b587b1b76a3c97a7cdb88f21e130
|
|
|
|
| |
Change-Id: Id2d91e30a6f7cc4eb93427b50efc1c5c77f14b75
|
|
|
|
| |
Change-Id: I14c6c22d822ae43c57e8163d292bea299a58fbb4
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Ensure that when constructing a plaintext block log message
for a partial block that the namespace is shown. Currently
because makePageLink in plaintext mode uses the page title
and does not include the $html text, which is used in non-
plaintext mode, it means that for namespace blocks the shown
text is "Special:AllPages".
There is no way to link to Special:AllPages with a specified
namespace while in plaintext mode because the namespace query
parameter cannot be included in the wikilink. This means that,
if the page was still linked to, the link would just show all pages.
As such, unless other patches are submitted to allow the namespace
to be specified when linking through a wikilink, the link is
best removed.
The plaintext value of the namespace is used by the CheckUser
extension, which is what the relevant bug reports issues with.
Bug: T268156
Change-Id: Ic05ae1adf92cb806517226d74bf2edc9a89251cd
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Passing ints here is deprecated in php 8.1. Additionally, it is
almost certainly not what we want, since an int to this function
is interpreted as an ascii code point (e.g. ctype_digit( 1 ) is
false. It is true for ints between 48-57 and > 255).
In practise this doesn't change much, since there is also an
is_int check here.
Bug: T313663
Change-Id: I11f3c710ba667d0f01574856af8f3da11d0b7f15
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
So, typehint setComment and then fix tests so they always pass a summary.
This also introduces an api change.
Bug: T311567
Change-Id: I478e62b6753d6009017ab0acc295e6cee7d3b017
|
| |
| |
| |
| |
| |
| |
| | |
It has been deprecated since 1.33 and it is unused
in Wikimedia code.
Change-Id: I010614d600b1ec334b92cc1a8897a10756504a69
|
| |
| |
| |
| |
| |
| |
| | |
Change to use Authority object where possible
to use the interface instead of implementation
Change-Id: Ia7e9ce2a2f05ef2ae1cf981bf96faf48b04cf58d
|
|/
|
|
|
|
| |
It's been deprecated since 1.37 and it is unused.
Change-Id: Ibc7d722601b70c4a599d9b235b5d5a2fe1b5328a
|
|
|
|
|
|
|
|
|
|
|
|
| |
It seems optimizer can't pick the right index when the user has done
many log actions. See the ticket for more information.
There are two indexes for actor and they are not that different so even
the wrong pick is fine but to make it more performant, make sure you get
log_actor_type_time when you filter based on both actor and type.
Bug: T303089
Change-Id: Ie0e7b5cc3a245dc28157a0276f6cce62f90b797f
|
|
|
|
|
|
| |
Found using IntelliJ's "Typo" code inspection.
Change-Id: I746220ebe6e1e39f6cb503390ec9053e6518cf16
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Also use config from context, if available
Change-Id: I35d3254b1859116be53fd53c05cbdef81ca01b22
|
|/
|
|
|
|
|
| |
UserGroupMembership::getGroupName is deprecated and getGroupMemberName
looks similar
Change-Id: Ic8b7ec54b18093533c302a6a319137e597d09d87
|