Skip to content
Snippets Groups Projects
Commit d26d983c authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline' into 'master'

add error_reporting=E_ALL to build.sh upgrade_db.php and catching warnings in patch_417

See merge request !4228
parents 576a4947 ab15569d
Branches
Tags
2 merge requests!4230master in,!4228add error_reporting=E_ALL to build.sh upgrade_db.php and catching warnings in patch_417
Pipeline #14865 passed with stage
in 27 minutes and 32 seconds
......@@ -14,7 +14,7 @@ touch local.php
php --version
php scripts/upgrade_db.php
php -d display_errors=on -d error_reporting=E_ALL scripts/upgrade_db.php
cd cosmogramme
cp config.ref.php config.php
......
......@@ -157,9 +157,10 @@ class Class_Migration_CleanProfileCfgModules {
$dispatcher = $this->_getDispatcherFor($module);
$class_name = $dispatcher->getControllerClass($request);
try {
$class_name = $dispatcher->loadClass($class_name);
// could throw warning if loadClass didn't work.
$class_name = @$dispatcher->loadClass($class_name);
return (new $class_name($request, new Zend_Controller_Response_Http, []))
->isDispatchable($dispatcher->getActionMethod($request));
->isDispatchable($dispatcher->getActionMethod($request));
} catch (Exception $e) {
return false;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment