1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/extension-manager] Add prefix to extension meta data / install classes

PHPBB3-10323
This commit is contained in:
Nils Adermann
2011-10-14 00:52:36 +02:00
parent 639e3b9f17
commit f53892c838
6 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,24 @@
<?php
class phpbb_ext_bar_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;
}
}