diff --git a/RELEASE-NOTES-1.1.md b/RELEASE-NOTES-1.1.md index 7d5414a..8300ff4 100644 --- a/RELEASE-NOTES-1.1.md +++ b/RELEASE-NOTES-1.1.md @@ -65,12 +65,13 @@ Below only new and removed languages are listed. ### Deprecations +* (issue #24) Converted to the new hook system. +* (T262067, issue #33) Migrated `templateDirectory` option to `skin.json`. * … ### Other changes * (issue #22) Fixed capitalization in README. -* (issue #24) Converted to the new hook system. * Reordered skin.json based on mediawiki/core `docs/extension.schema.v2.json` (`6d71df9`). * (issue #28, #29) Added documentations. diff --git a/includes/SkinLakeus.php b/includes/SkinLakeus.php index bc0b07b..84edba5 100644 --- a/includes/SkinLakeus.php +++ b/includes/SkinLakeus.php @@ -10,15 +10,11 @@ use TemplateParser; class SkinLakeus extends SkinMustache { - - public const TEMPLATE_DIR = __DIR__ . '/templates'; - /** * @param BagOStuff $localServerObjectCache * @param array $options */ public function __construct( BagOStuff $localServerObjectCache, array $options ) { - $options['templateDirectory'] = self::TEMPLATE_DIR; parent::__construct( $options ); $this->templateParser = new TemplateParser( $this->options['templateDirectory'], $localServerObjectCache ); diff --git a/skin.json b/skin.json index 2e15fcc..616176d 100644 --- a/skin.json +++ b/skin.json @@ -235,6 +235,7 @@ "args": [ { "name": "lakeus", + "templateDirectory": "includes/templates", "responsive": true, "styles": [ "mediawiki.hlist",