Skip to content

Commit

Permalink
проверка расширения filter при установке
Browse files Browse the repository at this point in the history
  • Loading branch information
fuze committed Dec 30, 2015
1 parent 04eb5b8 commit 42c3c95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/steps/php.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function check_requirements(){

$min_php_version = '5.3.0';
$vars = array('magic_quotes_gpc' => 0, 'register_globals' => 0);
$extensions = array('date', 'gd', 'json', 'mbstring', 'mysqli', 'session');
$extensions = array('date', 'gd', 'json', 'mbstring', 'mysqli', 'session', 'filter');
$extensions_extra = array('ftp', 'memcache', 'zip', 'curl');

sort($extensions);
Expand All @@ -43,7 +43,7 @@ function check_requirements(){
);
$info['valid'] = $info['valid'] && ($req == $set);
}

foreach($extensions as $ext){
$loaded = extension_loaded($ext);
$info['ext'][$ext] = $loaded;
Expand Down
4 changes: 4 additions & 0 deletions update/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ function install_package(){
}, 'name');
foreach ($controllers as $controller) {

if(in_array($controller['name'], array('video','channels','places'))){
continue;
}

$controller_root_path = cmsConfig::get('root_path').'system/controllers/'.$controller['name'].'/';

$form_file = $controller_root_path.'backend/forms/form_options.php';
Expand Down

0 comments on commit 42c3c95

Please sign in to comment.