diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-08-05 19:00:20 -0500 |
---|---|---|
committer | Unknown Bliss <m@michaelcullum.com> | 2012-09-01 15:05:56 +0100 |
commit | 7b643fe8a5fd3b92bb4db9eacb27645417004709 (patch) | |
tree | 89e96aa6658d75f1ef443bb00f5990077212ff99 /phpBB/includes/extension | |
parent | dce04b2d03f93c9237b743afbcbd89fb6405f836 (diff) | |
download | forums-7b643fe8a5fd3b92bb4db9eacb27645417004709.tar forums-7b643fe8a5fd3b92bb4db9eacb27645417004709.tar.gz forums-7b643fe8a5fd3b92bb4db9eacb27645417004709.tar.bz2 forums-7b643fe8a5fd3b92bb4db9eacb27645417004709.tar.xz forums-7b643fe8a5fd3b92bb4db9eacb27645417004709.zip |
[ticket/10631] Make failure to meet ext enable requirements clearer
Turn the blocks red on the details page if requirement is not met.
Also changing a how the errors come up when trying to enable/disable
an extension when they cannot be.
PHPBB3-10631
Diffstat (limited to 'phpBB/includes/extension')
-rw-r--r-- | phpBB/includes/extension/metadata_manager.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/extension/metadata_manager.php b/phpBB/includes/extension/metadata_manager.php index c7f52b7c02..8a68e464a7 100644 --- a/phpBB/includes/extension/metadata_manager.php +++ b/phpBB/includes/extension/metadata_manager.php @@ -320,8 +320,13 @@ class phpbb_extension_metadata_manager 'MD_VERSION' => (isset($this->metadata['version'])) ? htmlspecialchars($this->metadata['version']) : '', 'MD_TIME' => (isset($this->metadata['time'])) ? htmlspecialchars($this->metadata['time']) : '', 'MD_LICENCE' => htmlspecialchars($this->metadata['licence']), - 'MD_REQUIRE_PHP' => (isset($this->metadata['require']['php'])) ? htmlspecialchars($this->metadata['require']['php']) : '', - 'MD_REQUIRE_PHPBB' => (isset($this->metadata['require']['phpbb'])) ? htmlspecialchars($this->metadata['require']['phpbb']) : '', + + 'MD_REQUIRE_PHP' => (isset($this->metadata['require']['php'])) ? htmlspecialchars($this->metadata['require']['php']) : '', + 'MD_REQUIRE_PHP_FAIL' => !$this->validate_require_php(), + + 'MD_REQUIRE_PHPBB' => (isset($this->metadata['require']['phpbb'])) ? htmlspecialchars($this->metadata['require']['phpbb']) : '', + 'MD_REQUIRE_PHPBB_FAIL' => !$this->validate_require_phpbb(), + 'MD_DISPLAY_NAME' => (isset($this->metadata['extra']['display-name'])) ? htmlspecialchars($this->metadata['extra']['display-name']) : '', )); |