Last modified: 2014-04-23 13:44:42 UTC
Created attachment 10764 [details] Patchfile to wenhance Widgets This Patch allows you to set the storage-container for widgets ($compiled_dir) via LocalSettings.php or includes/DefaultSettings.php. Background is to use the Widgets-Extension for with multiple Instances of mediawiki by running the same Codebase. This is typically done within a "Wikifarm-Envronment". Applying the patch like this: cp wrenderer-patch.txt $IP/extensions/Widgets cd $IP/extensions/Widgets patch -R WidgetRenderer.php < wrenderer-patch.txt After that the storage-container ($compile_dir) can be set via LocalSettings.php for each instance with an individual path by typing $wgWidgetsCompileDir = "$IP/localExtensions/compiled_templates/"; or any other path where your Webserver has the right to write files.
This extension has a Git repository. I suggest that if you don't have a Gerrit account already you request one, commit this push and push it for review there.
I believe a more sane solution would be to place $wgWidgetsCompileDir inside the usual cache folder, like all other cached information (localization files, etc.). I consider it an anomaly that an extension requires write access to part of the code branch. This would work without any further specific changes to folder setup or rights both on single instance mediawiki installations and on wikifarms.
Hi Andreas! Thanks for your patch! You are welcome to use Developer access https://www.mediawiki.org/wiki/Developer_access to submit this (including potential recommendations from comment 2) as a Git branch directly into Gerrit: https://www.mediawiki.org/wiki/Git/Tutorial Putting your branch in Git makes it easier to review it quickly. Thanks again! We appreciate your contribution.
Submitted to Gerrit: https://gerrit.wikimedia.org/r/129170