-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from phpbb-extensions/master
Merge master branch into release-1.0.3
- Loading branch information
Showing
4 changed files
with
119 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* | ||
* Pages extension for the phpBB Forum Software package. | ||
* | ||
* @copyright (c) 2015 phpBB Limited <https://www.phpbb.com> | ||
* @license GNU General Public License, version 2 (GPL-2.0) | ||
* | ||
*/ | ||
|
||
namespace phpbb\pages; | ||
|
||
/** | ||
* Extension class for custom enable/disable/purge actions | ||
*/ | ||
class ext extends \phpbb\extension\base | ||
{ | ||
/** | ||
* Check whether or not the extension can be enabled. | ||
* The current phpBB version should meet or exceed | ||
* the minimum version required by this extension: | ||
* | ||
* Requires phpBB 3.1.3 due to usage of http_exception. | ||
* | ||
* @return bool | ||
* @access public | ||
*/ | ||
public function is_enableable() | ||
{ | ||
$config = $this->container->get('config'); | ||
return phpbb_version_compare($config['version'], '3.1.3', '>='); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters