forked from bravoleader/bbDKP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext.php
More file actions
executable file
·34 lines (31 loc) · 982 Bytes
/
Copy pathext.php
File metadata and controls
executable file
·34 lines (31 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
*
* @package bbguild v2.0
* @copyright 2016 bbDKP <https://github.com/bbDKP>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
namespace bbdkp\bbguild;
use phpbb\extension\base;
class ext extends base
{
/**
* override enable step
* enable_step is executed on enabling an extension until it returns false.
*
* Calls to this function can be made in subsequent requests, when the
* function is invoked through a webserver with a too low max_execution_time.
*
* @param mixed $old_state The return value of the previous call
* of this method, or false on the first call
* @return mixed Returns false after last step, otherwise
* temporary state which is passed as an
* argument to the next step
*/
function enable_step($old_state)
{
ini_set('max_execution_time', 300);
return parent::enable_step($old_state);
}
}