1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12847] Allow the extensions to say if they can be enabled

PHPBB3-12847
This commit is contained in:
Tristan Darricau
2014-07-13 15:44:58 +02:00
parent dd78b564e5
commit 519e64205a
9 changed files with 97 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace vendor3\foo;
class ext extends \phpbb\extension\base
{
static public $enabled;
public function enable_step($old_state)
{
self::$enabled = true;
return self::$enabled;
}
public function is_enableable()
{
return false;
}
}