Version 5.0.0 beta 6
This commit is contained in:
1 parent
57d9db6ce2
commit
fa2a720105
115 files changed
+1823
-1147
No files matched your search
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace IPS\core\setup\upg_5000015;
|
||||
|
||||
use IPS\Application;
|
||||
use IPS\core\FrontNavigation;
|
||||
use IPS\Db;
|
||||
use IPS\Data\Store;
|
||||
@@ -18,6 +19,7 @@ use IPS\Lang;
|
||||
use IPS\Member;
|
||||
use OutOfRangeException;
|
||||
use function defined;
|
||||
use function in_array;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
@@ -60,7 +62,7 @@ class Upgrade
|
||||
|
||||
/* Create the language string */
|
||||
$class = 'IPS\\' . $root['app'] . '\extensions\core\FrontNavigation\\' . $root['extension'];
|
||||
if( class_exists( $class ) )
|
||||
if( in_array( $root['app'], array_keys( Application::enabledApplications() ) ) and class_exists( $class ) )
|
||||
{
|
||||
/* @var FrontNavigation\FrontNavigationAbstract $class */
|
||||
$obj = new $class( json_decode( (string) $root['config'], true ), $root['id'], $root['permissions'], $root['menu_types'], json_decode( (string) $root['icon'], true ), $root['parent'] );
|
||||
|
||||
Reference in new issue
Block a user