Ricordisamoa
99148976f5
Add 'license-name' matching SPDX conventions
...
References:
http://spdx.org/licenses/
https://www.mediawiki.org/wiki/Manual:$wgExtensionCredits#license-name
Change-Id: Id8a8a8687fb76ee396480070d2cf32ab5442def7
2015-01-28 23:17:41 +01:00
Max Semenik
1e5c7917a7
Ability to disable gadget caching
...
Change-Id: Ic1653ae896ac0fd7c0165ecee76f807feea6edcf
2014-09-05 15:47:08 -07:00
umherirrender
3f3deb1410
Move api files to a new api folder
...
Change-Id: I365ead76b11f1906c698a6058f0ef376180e1af9
2014-06-06 19:13:10 +02:00
Siebrand Mazeland
5d28ca240d
Migrate to JSON i18n
...
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.
Change-Id: I1cc79cf4bade15ba469f5c407604416b85b74731
2014-03-27 10:02:52 +01:00
Max Semenik
0ee165bce8
Move hooks to a separate file
...
Change-Id: I2cb53bd4beae247c1b983dc8c4482af682acab64
2013-08-30 03:35:07 +04:00
Lewis Cawte
fc31e94ac9
HTTPS MediaWiki.org redirects to HTTP, so changing to WWW.
...
Change-Id: Iffbb3751753b211221728fa890e2c82e94f0150e
2013-06-14 18:10:19 +01:00
Timo Tijhof
eca021ed61
tests: Rename file to end in Test.php
...
Though the hook registration was working fine, the run from
Jenkins was failing.
Jenkins runs like this:
$ php tests/phpunit/phpunit.php extensions/Gadgets
Which bypasses UnitTestsList and uses auto-discovery within the
given directory of "*.Test.php" files.
Renamed to file to match PHPUnit's internal discovery pattern
and updated the onUnitTestsList callback to use this pattern
as well.
Also updated documentation applied recent code conventions in
this area (extend MediaWikiTestCase).
Change-Id: Iaa52a5eafdebf1529dd02fb1bed89d27c298e0d3
2013-05-01 03:20:39 +02:00
Siebrand Mazeland
31d5b9a186
Replace remaining deprecated wfMsg calls.
...
Change-Id: I126968cc09a75bb72987a035e9435dab5e854a35
2012-09-18 00:26:39 +00:00
Catrope
9fa08638e6
Use https for the description page URL
...
Change-Id: I1a4cf1daa4d2f1b5580695999ce4d0a46521031d
2012-06-20 20:07:28 -07:00
Siebrand Mazeland
b6c4101086
Bye, bye $wgExtensionAliasesFiles (deprecated in 1.16).
2011-12-25 23:09:26 +00:00
Siebrand Mazeland
76b26174eb
stylize.php, update whitespace, remove superfluous comment lines
...
update indentation and sprinkle some braces.
2011-09-23 06:48:37 +00:00
Krinkle
c818d05339
Per r97367 CR. Add 'alpha'. 1.18alpha is less than 1.18, and it works in that version as well
2011-09-17 16:34:58 +00:00
Krinkle
e941ac9d18
[ResourceLoader] Set default options for gadgets that are enabled by default, otherwise they can't be disabled from the preferences (bug 30941)
...
* Uses the new hook in User:getDefaultOptions (bug 30940; r97365)
* This revision is based on a similar one for RL2 in the branch (r97366). Needs to be back ported as the bug occurs in 1.18 as well
2011-09-17 03:03:02 +00:00
Max Semenik
1464069ffa
API for getting gadget categories
2011-04-17 05:37:56 +00:00
Max Semenik
168ac422fe
Gadgets: API for retrieving gadget information
2011-04-16 16:29:33 +00:00
Niklas Laxström
e4ab22033d
Typo and whitespace
2011-04-16 15:48:24 +00:00
Max Semenik
66a0821cb7
Merged branches/Gadgets-work/ to trunk. It now uses ResourceLoader (scripts must be explicitly marked as supporting it to be loaded this way), and in process I've completely rewritten its internal organisation in OOP style. Documentation commits will follow.
2010-11-11 18:19:57 +00:00
Niklas Laxström
94670275f1
Fix oversight in r75973 that broke gadgets tab in preferences
2010-11-06 09:21:00 +00:00
Sam Reed
588a5f1030
Code cleanup, mainly unused variables
2010-11-04 01:29:10 +00:00
Sam Reed
df0b297e0c
Can only use continue in a loop
2010-10-29 21:36:49 +00:00
Sam Reed
3a82759a8a
More deprecated method call removals and updates
2010-10-29 15:32:44 +00:00
Max Semenik
a40744c3b4
Gadgets: prevent section <gadget-section-> from appearing in preferences when there are no sections defined, or there are gadgets defined before the first section.
2010-08-10 19:48:39 +00:00
Max Semenik
9c360c1e94
Follow-up r70719 and r70721: on the second thought, this permission reflects my previous design, where gadget export page was much more computation-heave. It's not needed.
2010-08-08 19:01:28 +00:00
Max Semenik
b0004f78c9
Gadgets: added export feature for easier reuse
2010-08-08 18:22:22 +00:00
Niklas Laxström
c04518be2b
Refactor part of gadgets code
...
Renamed some confusingly named variables. Made wfApplyGadgetCode
to do less stuff and simpler. Use LinkBatch since every page
results in db query due to getting the latest revision.
2010-07-08 08:15:04 +00:00
Liangent
ab8947fca2
Add revision ids of js/css pages to URLs to have them auto-reloaded by users' browsers when they are changed on the wiki
2010-06-09 10:15:57 +00:00
Alexandre Emsenhuber
d0cbc88d98
Big changes to extensions' documentation:
...
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Daniel Kinzler
4c1ade6fdd
PHP compatibility: 5.3.1 is picky about pass-by-reference. Restrict use of &$foo to actual output parameters. This should probably be done for the entire code base.
2010-06-02 09:10:09 +00:00
Aryeh Gregor
d0d3d059b5
Remove most named character references from output
...
Recommit of r66254 to trunk. This was just
find extensions phase3 -iname '*.php' \! -iname '*.i18n.php' \! -iname 'Messages*.php' \! -iname '*_Messages.php' -exec sed -i 's/ /\ /g;s/—/―/g;s/•/•/g;s/á/á/g;s/´/´/g;s/à/à/g;s/α/α/g;s/ä/ä/g;s/ç/ç/g;s/©/©/g;s/↓/↓/g;s/°/°/g;s/é/é/g;s/ê/ê/g;s/ë/ë/g;s/è/è/g;s/€/€/g;s/↔//g;s/…/…/g;s/í/í/g;s/ì/ì/g;s/←/←/g;s/“/“/g;s/·/·/g;s/−/−/g;s/–/–/g;s/ó/ó/g;s/ô/ô/g;s/œ/œ/g;s/ò/ò/g;s/õ/õ/g;s/ö/ö/g;s/£/£/g;s/′/′/g;s/″/″/g;s/»/»/g;s/→/→/g;s/”/”/g;s/Σ/Σ/g;s/×/×/g;s/ú/ú/g;s/↑/↑/g;s/ü/ü/g;s/¥/¥/g' {} +
followed by reading over every single line of the resulting diff and
fixing a whole bunch of false positives. The reason for this change is
given in <http://lists.wikimedia.org/pipermail/wikitech-l/2010-April/047617.html >.
I cleared it with Tim and Brion on IRC before committing. It might
cause a few problems, but I tried to be careful; please report any
issues.
I skipped all messages files. I plan to make a follow-up commit that
alters wfMsgExt() with 'escapenoentities' to sanitize all the entities.
That way, the only messages that will be problems will be ones that
output raw HTML, and we want to get rid of those anyway.
This should get rid of all named entities everywhere except messages. I
skipped a few things like   that I noticed in manual inspection,
because they weren't well-formed XML anyway.
Also, to everyone who uses non-breaking spaces when they could use a
normal space, or nothing at all, or CSS padding: I still hate you. Die.
2010-05-30 17:33:59 +00:00
Chad Horohoe
7464a94254
Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh.
2010-05-27 15:56:53 +00:00
Chad Horohoe
16fa29f47e
Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()
2010-05-26 22:25:32 +00:00
Daniel Kinzler
1ff985a53e
fix for bug 22929: disable gadgets on Special:Userlogin
2010-04-06 21:00:39 +00:00
Alexandre Emsenhuber
dc06d8be5d
* Use Html::linkedStyle() to load styles
...
* Simplify a bit the code to detect Special:Preferences
2010-04-06 20:05:16 +00:00
Siebrand Mazeland
f7c6687361
* Remove $wgExtensionCredits['description'] where $wgExtensionCredits['descriptionmsg'] present. This feature was introduced in MediaWiki 1.12, and 'description' is not used if 'descriptionmsg' is present.
...
* Random indentation updates and trailing whitespace removed
2010-02-22 23:41:51 +00:00
Brion Vibber
d39d253951
bug 19785 tablerow for gadgets-prefstext not valid
2009-07-19 16:54:29 +00:00
Tim Starling
5bd433876f
Removed nasty cache-destroying feature which puts messages from the mediawiki namespace into $wgMessageCache->addMessages() so that Special:Allmessages can be even slower and uglier than it already was. It's not really practical to support this with the new LocalisationCache.
2009-07-02 06:54:38 +00:00
Siebrand Mazeland
b3ea80e01e
* Rename "<ExtName>.i18n.alias.php" to "<ExtName>.alias.php"
...
* Add support for ConfirmEdit and Mibbit special page localisation to Translate
2009-05-24 22:12:11 +00:00
Chad Horohoe
1c23bebc10
$wgUser -> $user. It's confusing to say the former unless you're using the global.
2009-05-07 20:18:15 +00:00
Chad Horohoe
2d7a5477d4
* Use new LoadAllMessages hook
...
* Remove useless globals ($wgTitle, $wgMessageCache, $wgLang, $wgSkin)
* NULL -> null
2009-05-07 19:23:10 +00:00
Alexandre Emsenhuber
b7e73b25e9
'parseinline' -> 'parse' for gadgets-prefstext to fix XHTML error.
...
'parseinline' doesn't remove the <p> tags in the middle of the text, but since this message contains two paragraphs in its definition, the </p> <p> beetween these two paragraphs are not removed.
2009-05-04 10:08:27 +00:00
Shinjiman
abc5516e8c
Follows up r49890, adding file location itself to obtaining the revision number shown in the Special:Version
2009-04-27 03:15:19 +00:00
Andrew Garrett
a9058edced
Fix double display of headings
2009-04-24 11:10:04 +00:00
Andrew Garrett
238a208393
Localisation of gadget section titles
2009-04-24 09:07:51 +00:00
Andrew Garrett
6b5f13b911
Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia).
2009-04-24 01:31:17 +00:00
Michael Dale
623a37af65
switched from addScript() call to addScriptFile() call to support scriptLoader
2009-04-16 22:28:23 +00:00
Chad Horohoe
9926aa38b0
Big commit. Removing svn-version and svn-date from extensions. Per the list, these versions do not give valuable information and are often wildly inaccurate.
2009-03-26 17:39:49 +00:00
Alexandre Emsenhuber
dfa01adeb9
Fix compat with PHP 5.3: third parameter is passed by value and not by ref (was throwing E_WARNING)
2009-03-10 17:06:04 +00:00
Daniel Kinzler
3e277d2caf
fix inversed test in short-cirquit condition
2009-02-17 09:41:42 +00:00
Siebrand Mazeland
c6b911e0f9
Consistent casing for addHTML()
2008-11-06 22:20:29 +00:00
Daniel Kinzler
2768552d83
fixed double-mangling of messages. still need to find a better way to defined defaults
2008-08-18 11:58:04 +00:00