Jonathan Lee
cf3b9cc6a0
Fix infinite loop if section header has ( ( #283 )
2024-07-23 06:33:18 +08:00
xtex
2376c43f92
Avoid using deprecated getCategories ( #278 )
...
Follow-up: I8dc85e76bfbb9ed49a603d990c14b7ee798bd821
Follow-up: I7b8a86f6efbdd86c1f493db6741c37bfb325e9bb
Signed-off-by: xtex <xtexchooser@duck.com>
2024-07-12 13:47:36 +08:00
CosmicAlpha
025f584752
Fix Phan
2024-05-25 00:15:46 +08:00
CosmicAlpha
6455440d78
Fix PHPCS
2024-05-25 00:12:46 +08:00
CosmicAlpha
538886042d
Fix PHPCS
2024-05-25 00:11:30 +08:00
Ádám Domonkos
df4ff9632a
PageImages support for mode=gallery on non file pages ( #275 )
...
In gallery mode, attempting to automatically detect whether:
- PageImages is enabled
- If it is, if a non file page has a PageImage
If both are true, it should try to use the PageImage for the gallery and the page name for the image caption.
Right now, it also makes the page name in the caption a link, and points the image link to the page as well. Could not figure out how to make this behavior optional.
Gallery mode for file pages should be untouched.
Notes:
- This behavior is similar, but not a perfect match to DPL_(Wikimedia)'s PageImages in gallery mode.
- Unsure if some of the solutions are the most optimal. The way its detecting if PageImages is enabled is a bit clumsy.
Co-authored-by: CosmicAlpha <cosmic.alpha24@gmail.com>
2024-05-25 00:04:07 +08:00
CosmicAlpha
24bb50d0af
Use HookContainer to register hooks ( #236 )
...
Manipulating $wgHooks is deprecated
2024-04-22 03:14:45 -06:00
CosmicAlpha
69f8d10204
Partial revert of #215 ( #264 )
2024-02-16 15:55:27 -07:00
alistair3149
426ab051f9
Deprecate various private ParserOutput var ( #215 )
...
Might need a revisit since not every variable has a setter method
Fixes #196
---------
Co-authored-by: CosmicAlpha <cosmic.alpha24@gmail.com>
2024-02-16 15:25:32 -07:00
paladox
811467f206
Fix "PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated" ( #251 )
2023-12-15 15:56:50 -07:00
paladox
6f2834a5bc
Fix "PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead" ( #250 )
2023-12-15 09:48:13 -07:00
Hamish
61a6d3123d
Fix minoredits=exclude ( #234 )
...
fixes issue #226
Previously, the query selected the latest revision for each page based on the rev_timestamp, but did not consider the rev_minor_edit value until afterwards.
Now it will retrieve the latest revision that satisfies the condition rev.rev_minor_edit = 0.
2023-11-06 12:31:11 -07:00
CosmicAlpha
c2b3cbc6b6
Revert "Improve the performance of rev_page subqueries by using page_id. ( #229 )" ( #230 )
...
This reverts commit f66d48387d
.
2023-04-24 12:07:20 -06:00
TehKittyCat
7966936c87
Don't return the viewer's IP address as %USER% if rev_actor is 0. ( #228 )
...
User->getName() falls back to the current user's IP address if there is no user name.
Co-authored-by: TehKittyCat <tehkittycat@weirdgloop.org>
2023-04-23 22:51:17 -06:00
TehKittyCat
f66d48387d
Improve the performance of rev_page subqueries by using page_id. ( #229 )
...
Under MySQL 8 this saved 200 ms off the first run and lets subsequent runs be almost instantaneous.
Co-authored-by: TehKittyCat <tehkittycat@weirdgloop.org>
2023-04-23 22:17:58 -06:00
Marcin Kostrzewski
43864ad019
Fix usedby query returning all templates ( #224 )
...
Co-authored-by: Martyna Nowicka <37370506+maaartyyynaa@users.noreply.github.com>
2023-03-16 14:49:35 -06:00
CosmicAlpha
7cf983cb03
Only check for buffer overflow ( #223 )
...
The other regex validation seems unnecessary.
2023-03-12 13:18:38 -06:00
CosmicAlpha
d4f2f71384
Use ExtensionRegistry::getAllThings() to get version ( #220 )
2023-02-27 13:02:41 -07:00
CosmicAlpha
757a74b755
phan: enable SecurityCheck-ReDoS
( #217 )
2023-01-14 11:13:06 -07:00
CosmicAlpha
693336b9fd
Add support for PHP 8.0 and PHP 8.1 ( #216 )
2023-01-13 14:12:14 -07:00
CosmicAlpha
d7336b1a67
Fix for links migration: add JOIN on linktarget for notuses ( #213 )
...
Also adds a PHPUnit tests for the notuses parameter.
2023-01-04 11:22:24 -07:00
CosmicAlpha
8dd8d03d61
Support MediaWiki 1.39 for actor and templatelinks migration ( #188 )
...
This adds support for 1.39, and drops support for older versions, since 1.39 is the current LTS release.
2022-12-06 17:10:46 -07:00
CosmicAlpha
6ca7c458be
Properly select il_to for use with imagecontainer, passing title
2022-08-11 14:51:06 -06:00
Robert Vogel
64cf6c5976
Fix profiling context calculation ( #174 )
...
`ParserFactory::getParser` will create a completely new `Parser` instance.
Based on the context, this instance may have not set a `Title` object.
Thus accessing `Parser::getTitle` without checking for the return value
may break the code.
Issue: https://github.com/Universal-Omega/DynamicPageList3/issues/170
Co-authored-by: rvogel <vogel@hallowelt.biz>
2022-06-24 10:24:49 -06:00
Universal Omega
da27636f6b
add additional isset check for mTemplatePath ( #167 )
2022-04-15 14:08:27 -06:00
Universal Omega
c4bff23bf6
Use database update maintenance script for creating VIEW ( #165 )
2022-04-14 11:50:27 -06:00
Universal Omega
7c2bc69296
phpcs: enable MediaWiki.Commenting.FunctionComment
( #149 )
2022-03-22 13:59:52 -06:00
Universal Omega
be6395a07a
Remove unused LST::noop()
function ( #148 )
2022-03-22 10:37:11 -06:00
Universal Omega
4890c27b7f
Fix %TOTALPAGES%
usage ( #145 )
2022-03-21 15:37:02 -06:00
Universal Omega
02fe40ec52
Fix firstrevisionsince and lastrevisionbefore parameters ( #143 )
2022-03-20 17:50:19 -06:00
Universal Omega
181a32255e
Only set sqlQuery if used for debug ( #142 )
2022-03-20 17:14:44 -06:00
Universal Omega
d5b353968e
Fix openreferences=missing
count ( #140 )
2022-03-20 16:42:03 -06:00
Universal Omega
bc1377bb00
Use ExtensionRegistry for checking HitCounters ( #137 )
2022-03-20 11:15:43 -06:00
Universal Omega
af9d8a4f5e
phpcs: enable SpaceBeforeSingleLineComment.NewLineComment
( #138 )
2022-03-20 11:11:35 -06:00
Universal Omega
edb0836569
Fix allowUnlimitedResults
( #131 )
2022-03-19 20:52:03 -06:00
Universal Omega
c47acf14c6
phpcs: enable PEAR.Functions.ValidDefaultValue.NotAtEnd
( #128 )
2022-03-17 13:02:52 -06:00
Universal Omega
683294d0ab
Fix minoredits parameter ( #127 )
2022-03-17 09:38:47 -06:00
Universal Omega
60ec70c079
Properly implement titlemaxlength and includemaxlength ( #123 )
2022-03-16 17:23:58 -06:00
Universal Omega
5bd1244b34
Remove unused parameters from editTemplateCall ( #125 )
2022-03-16 16:37:16 -06:00
Universal Omega
cb70bf0a8b
Remove some unused code ( #124 )
2022-03-16 16:10:03 -06:00
Universal Omega
4e5a019adb
Remove unused removeSectionMarkers function ( #121 )
2022-03-15 14:37:01 -06:00
Universal Omega
1cfaefb084
Fix query error due to not adding quotes to '%' ( #119 )
2022-03-15 11:11:41 -06:00
Universal Omega
4b41db98f6
Use StringUtils::isValidPCRERegex ( #117 )
2022-03-14 10:44:46 -06:00
Universal Omega
af983cf2df
Re-namespace and use AutoloadNamespaces ( #113 )
2022-03-13 13:57:34 -06:00
Universal Omega
90c3c0ee6c
Improve query performance and add caching support ( #107 )
2022-03-13 12:28:30 -06:00
Universal Omega
2ea2503a43
Use Extension:DynamicPageList3 in logger ( #111 )
2022-03-12 16:12:52 -07:00
Universal Omega
cd764c2a1d
Replace usages of globals ( #106 )
2022-03-09 13:17:24 -07:00
Jack Phoenix
c37cda41d9
Use the existing Services object ( #105 )
...
It was already defined above, on line 198.
Also compacted the multi-line chained method calls into one line since its length does not exceed 120 characters.
2022-03-08 10:28:46 -07:00
Universal Omega
a0a2b862bc
Fix usage of scroll and order in the same query ( #88 )
2022-02-06 16:27:50 -07:00
Universal Omega
ce64f763a3
Add support for openreferences=missing
( #87 )
2022-02-05 12:33:07 -07:00