mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 13:44:12 +02:00
[ticket/15257] Provide extension not enableable messages
PHPBB3-15257
This commit is contained in:
committed by
Marc Alexander
parent
b6c230753e
commit
975fe1e153
19
tests/extension/ext/vendor5/foo/ext.php
Normal file
19
tests/extension/ext/vendor5/foo/ext.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace vendor5\foo;
|
||||
|
||||
class ext extends \phpbb\extension\base
|
||||
{
|
||||
static public $enabled;
|
||||
|
||||
public function is_enableable()
|
||||
{
|
||||
return array('Reason 1', 'Reason 2');
|
||||
}
|
||||
|
||||
public function enable_step($old_state)
|
||||
{
|
||||
self::$enabled = true;
|
||||
return self::$enabled;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user