Fix extension definitions

Before, extensions were missing the definition of mandatory methods.
At the moment, it's not a problem because the coding guidelines are not
enforced by the code. But in the future, it will break.
Now, extensions have all mandatory method definitions.
This commit is contained in:
Alexis Degrugillier 2021-01-05 07:56:11 -05:00
parent 17f42e4b53
commit 26be877e7a
21 changed files with 130 additions and 22 deletions

View file

@ -1,7 +1,18 @@
<?php
class TitleWrapExtension extends Minz_Extension {
public function install() {
return true;
}
public function uninstall() {
return true;
}
public function handleConfigureAction() {
}
public function init() {
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
}
}

View file

@ -1,8 +1,8 @@
{
"name": "Title-Wrap",
"author": "rans de Jonge, Joris Kinable",
"author": "Frans de Jonge, Joris Kinable",
"description": "Applies a line-wrap to long article titles, as opposed to truncating the title when it overflows its display area.",
"version": 0.1,
"version": 0.2,
"entrypoint": "TitleWrap",
"type": "user"
}