Skip to content

Commit 22546a0

Browse files
Fix: remove constructor
It breaks things!
1 parent 2587d47 commit 22546a0

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

gwynethllewelyn/postlocalstorage/ext.php

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,7 @@
1919
*/
2020
class ext extends base
2121
{
22-
/**
23-
* Class constructor, just to let us know that we reached this point.
24-
*
25-
* @param ContainerInterface $container Container object
26-
* @param \phpbb\finder $extension_finder
27-
* @param \phpbb\db\migrator $migrator
28-
* @param string $extension_name Name of this extension (from ext.manager)
29-
* @param string $extension_path Relative path to this extension
30-
*/
31-
public function __construct(ContainerInterface $container, \phpbb\finder $extension_finder, \phpbb\db\migrator $migrator, $extension_name, $extension_path)
32-
{
33-
$this->container = $container;
34-
$this->extension_finder = $extension_finder;
35-
$this->migrator = $migrator;
3622

37-
$this->extension_name = $extension_name;
38-
$this->extension_path = $extension_path;
39-
error_log('[phpBB3 postlocalstorage] my base constructor was called!');
40-
}
4123

4224
/**
4325
* Check whether or not the extension can be enabled.
@@ -46,6 +28,7 @@ public function __construct(ContainerInterface $container, \phpbb\finder $extens
4628
*/
4729
public function is_enableable()
4830
{
49-
return phpbb_version_compare(PHPBB_VERSION, '3.3', '>=');
31+
error_log('[phpBB3 postlocalstorage] my is_enableable() was called!');
32+
return phpbb_version_compare(PHPBB_VERSION, '3.3', '>=');
5033
}
5134
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
<div id="expiry-time" style="visibility: hidden; display: none;">
3-
{%- if EXPIRY_TIME -%}
4-
{%- EXPIRY_TIME -%}
5-
{%- else -%}
3+
{% if EXPIRY_TIME %}
4+
{{ EXPIRY_TIME }}
5+
{% else %}
66
0
7-
{%- endif -%}
7+
{% endif %}
88
</div>
99
{% INCLUDEJS '@gwynethllewelyn_postlocalstorage/postlocalstorage_functions.js' %}

0 commit comments

Comments
 (0)