Commit graph

18 commits

Author SHA1 Message Date
Alexander Yakovlev d903805e69 Update code for MW 1.40 2023-08-06 11:24:45 +06:00
Alexander Yakovlev 26a1a64270 WIP new caches 2023-08-06 10:30:55 +06:00
Alexander Yakovlev b431c2f796 noprint class on ratings 2017-04-09 15:18:53 +07:00
IoannisKydonis 86aa7537c7 Add PLURAL support for voteny-community-score
Thread:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Voteny-community-score/en

Change-Id: Ia6d5e902792649d193f037c75f698ee62746614e
2016-01-22 13:04:23 +02:00
Aaron Schulz 071fc82354 Remove begin()/commit() calls that can break outer transactions
The single statements are already atomic and will commit at
the end of the request in commitMasterChanges().

Bug: T120791
Change-Id: I26ca27ee0c7e98488beddc2c801a981879f6958a
2015-12-08 14:36:04 -08:00
Jack Phoenix 8762715a91 Allow star rating to be used outside of the page which has the <vote type=1 /> tag
This ability was removed in version 2.4 (r108076) in favor of using the
wgArticleId JS global, but doing so essentially broke things like the
ImageRating extension, which rely on knowing a "remote" page's ID since
wgArticleId is obviously 0 for special: pages.

Change-Id: I644cbd57c11114758f229ca052c51328513e59a1
2015-05-14 03:59:17 +03:00
Jack Phoenix 7678ee7c4b Ran stylize.php, manually fixed documentation, etc.
Change-Id: I8e684d00bf5142eff70d45d64e4c29cfc380749d
2014-09-21 20:00:51 +03:00
Jack Phoenix 89abe6bffb Modernization
Change-Id: Ie8dce7c0dc3feb16ac5311d1e3fb88ce5933363a
2014-09-21 19:54:41 +03:00
addshore 6788f6efff Remove use of deprecated wfGetIP()
Change-Id: Id08e2343e13ed9d3b729e19ec181cdce5602fe8a
2014-08-29 13:43:09 +01:00
addshore af68d5a66c Use public instead of var in classes
Change-Id: Ic6d8f1025d43c8844ca32e34a473dbe01851bd8e
2014-08-17 22:12:52 +01:00
Siebrand Mazeland a0812713f2 Change right "vote" to "voteny" to prevent key conflicts in L10n
Change-Id: Ifb33bf886204845c014abfbaadb536fde95bde4e
2014-08-09 17:56:27 +02:00
umherirrender 4c1935d888 Replace deprecated Title::escapeFullURL call
Change-Id: Ib5cf73ca6ecb1ea10ddbebf9cec6ee9973c72a7a
2014-06-28 08:21:42 +02:00
saper 5daeba21b7 PostgreSQL support for VoteNY
Use integer value for votes to count averages.

Initial contributor: Sebastian Fiedler <basti@unix-solution.de>

Bug: 51441

Change-Id: I9c09b84d3652449d3328586332c636a7a676273a
2013-12-01 00:27:55 +01:00
Jack Phoenix 87054b4f3c change message key as per TWN's request (https://translatewiki.net/wiki/Thread:Support/New_stuff_to_check) + bump version number 2012-08-29 19:05:53 +03:00
Jack Phoenix 5127c15006 VoteNY: follow-up to r108076: specify oldid parameter for Article constructor as per CR 2012-01-07 15:09:26 +00:00
Jack Phoenix a3c82a518b VoteNY: actually make this work under 1.18+, not just in ResourceLoader's debug mode.
Changelist:
*removed backwards-compatibility code
*used HTML5 data attributes to store various information that we access in the JS file
*incremented the extension's version number
*removed ancient vote key stuff (the "vote key" was being passed to the AJAX function but it wasn't used in any of the functions)
*updated Linker class, that class is now static
*killd $wgTitle

Some things are now a bit slower, i.e. if you click on the green voting box, then click again when the unvote link appears, it doesn't seem to change back to "vote" again...but at least it should work now.
2012-01-04 19:51:44 +00:00
Alexandre Emsenhuber 656b42d1fc Removed PHP4-ism 2011-12-11 09:02:57 +00:00
Jack Phoenix ae507a6ca3 phase II social tools: VoteNY. Tested and built against MW 1.16.0. Can be used without the core social tools package (SocialProfile extension). 2011-09-14 15:26:09 +00:00