diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-26 14:57:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-26 14:57:36 +0000 |
commit | 5c629b76c7e340d9d302478dded5648c582c98b5 (patch) | |
tree | 287b67b01fcd8cb0d2647e99fe03c33de2063faa /modules | |
parent | 38fca49ad64696b9bc044b2aba9b1bc625bd632a (diff) | |
download | brdo-5c629b76c7e340d9d302478dded5648c582c98b5.tar.gz brdo-5c629b76c7e340d9d302478dded5648c582c98b5.tar.bz2 |
- Patch #445062 by Arancaytar: check for PHP tokenizer extension to be installed.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 19908ee0d..46d4deaa2 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -42,6 +42,17 @@ function system_requirements($phase) { $requirements['php']['severity'] = REQUIREMENT_ERROR; } + // Make sure the tokenizer extension is enabled, which is required by the code registry. + $requirements['php_tokenizer'] = array( + 'title' => $t('PHP tokenizer'), + 'value' => $t('Enabled'), + ); + if (!function_exists('token_get_all')) { + $requirements['php_tokenizer']['value'] = $t('Not enabled'); + $requirements['php_tokenizer']['description'] = $t('Drupal requires the <a href="@url">tokenizer extension</a> to be enabled.', array('@url' => 'http://php.net/tokenizer')); + $requirements['php_tokenizer']['severity'] = REQUIREMENT_ERROR; + } + // Test PHP register_globals setting. $requirements['php_register_globals'] = array( 'title' => $t('PHP register globals'), |