When pages are redirects, admins may not want to delete them, as they are less likely to contain bad content. This patch highlights them by using the allpagesredirect styling which provides the same italicizing behaviour for Special:AllPages.
Bug: T278625
Change-Id: I027cad868ed13190424612d1f9c2bdaf6456f49e
The search is against the MediaWiki-DB-encoded title (with '_' for space
and initial uppercase letter): these constraints are converted in this
patch to let the user use MediaWiki-displayed titles if they want.
It was taken care about of the configuration-specific case where some
namespaces are first-case-insensitive but other namespaces are first-case-
sensitive, by partitioning the namespace space into to distinct spaces.
Bug: T234726
Co-authored-by: Chlod Alejandro <chlod@chlod.net>
Change-Id: Id83832c256660b691a896113c98641700ed02707
Join "page" table to query current page name for moved pages.
Bug: T43351
Co-authored-by: Chlod Alejandro <chlod@chlod.net>
Change-Id: I127bc413c8ef25bbc24cb27b2cdc6d1ec08142ab
For example:
* Remove redundant PHPDoc blocks that just duplicate existing
information and aren't needed any more with our current PHPCS
rule set.
* Add some very obvious type declarations.
* Use ??= where it makes sense.
Change-Id: I5c182cc961c6eeccead79ff49b0376eee2418acf
This code isn't even generating XML. I'm intentionally leaving a few
Xml::… usages behind that are more complicated. This is for later
patches.
Bug: T341775
Change-Id: Icc693968f0cf726b8ed616c38b7cfd422f481da5
As an Iranian, I'm a big fan of this extension so I decided to update
some parts of it to use new rdbms APIs.
Bug: T350984
Bug: T312361
Change-Id: Id374fc9143d40ac0c65ae99ffab945cde51f77d5
The page title should be substituted into the link syntax before the
wikitext is parsed, so we should use wfEscapeWikiText() instead of
plaintextParams.
Bug: T310015
Change-Id: Iad216ded7e25c7f84b6b9ae619ddd51b9140bd24
This avoids the deprecation warning:
ctype_digit(): Argument of type null will be interpreted as string in the future
Bug: T322079
Change-Id: Id1e7ec7d73028339b53047ebfd6a975d23c3d180
Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0)
instead of the HTML entity  .
Bug: T154300
Change-Id: I2f50fd24772eacd0bddf90c982fd7112196e6ad2
The UTF-8 normalization for the URL attributes `action` and `namespace`
are not needed.
Also use === instead of ==.
Change-Id: I03a844d58b11f45dc67f3dfb861d8f6e9ffcc18d
This commit adds logic very similar to what DeleteAction does: there's a
dropdown with predefined reasons (from MediaWiki:Deletereason-dropdown)
and a text field where you can enter a custom reason that will be
appended to the one you chose to on the dropdown.
Bug: T25020
Change-Id: I9668244d165caae2d71467573f1204689f2600a8
Without the params, the job does not actually delete the page,
rendering Nuke useless.
Bug: T294686
Change-Id: I61f47961e1d4739a290ed53704e87887e3f59f23
This would make running Special:Nuke much faster and avoid production
errors due to timeout.
Bug: T188679
Bug: T212690
Change-Id: I59d99068dd4d663261a5a5d0180105889fca66a2
wfLocalFile is deprecated and emits deprecation warnings. It's usages
should be replaced with FileRepo::newFile()
Follow-Up: I0a9c414da4cb0cec686e1e91b5d0babe055925a6
Bug: T288641
Change-Id: Ie6046ac1e12b4f09a856045f40aa87485b32b39e
Exists since 1.31, extension requires 1.35+
If it is ever removed, using the current handling from before it was
added will break things
Change-Id: Iee13649a4e3fb59195a60d178473d6e970680a45
Check if the block applies to the `delete` right. Currently,
AbstractBlock::appliesToRight has no logic for delete, and returns
null, but to be forward-compatible it should be checked instead of
just assuming that blocks prohibit deletion.
Change-Id: I35820f07b5765f0870ab7f3c838955e6167533cd