mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
26 lines
335 B
PHP
26 lines
335 B
PHP
<?php
|
|
|
|
namespace vendor2\bar;
|
|
|
|
class ext extends \phpbb\extension\base
|
|
{
|
|
static public $state;
|
|
|
|
public function enable_step($old_state)
|
|
{
|
|
// run 4 steps, then quit
|
|
if ($old_state === 4)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
if ($old_state === false)
|
|
{
|
|
$old_state = 0;
|
|
}
|
|
|
|
self::$state = ++$old_state;
|
|
|
|
return self::$state;
|
|
}
|
|
}
|