Version 5.0.0 beta 8
This commit is contained in:
1 parent
54d5dcd0a0
commit
214f649f1d
483 files changed
+35354
-33568
No files matched your search
@@ -24,6 +24,8 @@ use IPS\Output;
|
||||
use IPS\Theme;
|
||||
use function count;
|
||||
use function defined;
|
||||
use function str_replace;
|
||||
use function strtolower;
|
||||
use const IPS\ROOT_PATH;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
@@ -505,13 +507,41 @@ class details extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
/* FileStorage extensions */
|
||||
foreach( $this->application->extensions( 'core', 'FileStorage', false ) as $extensionKey => $ext )
|
||||
/* Extensions */
|
||||
$extensionStrings = [
|
||||
'ModeratorPermission' => 'modperms__{app}_{key}',
|
||||
'AchievementAction' => 'AchievementAction__{key}',
|
||||
'AdminNotifications' => 'acp_notification_{key}',
|
||||
'CommunityEnhancements' => 'enhancements__{app}_{key}',
|
||||
'Dashboard' => 'block_{app}_{key}',
|
||||
'EditorLocations' => 'editor__{app}_{key}',
|
||||
'EditorMedia' => 'editorMedia_{app}_{key}',
|
||||
'FileStorage' => 'filestorage__{app}_{key}',
|
||||
'GroupForm' => 'group__{app}_{key}',
|
||||
'IpAddresses' => 'ipAddresses__{app}_{key}',
|
||||
'LiveSearch' => 'acp_search_title_{app}_{key}',
|
||||
'MemberACPProfileTabs' => 'memberACPProfileTitle_{app}_{key}',
|
||||
'MFAArea' => 'MFA_{app}_{key}',
|
||||
];
|
||||
|
||||
$appExtensions = $this->_getJson( ROOT_PATH . "/applications/" . $this->application->directory . "/data/extensions.json" );
|
||||
foreach( $appExtensions as $_app => $_extensions )
|
||||
{
|
||||
$stringToCheck = 'filestorage__' . $this->application->directory . '_' . $extensionKey;
|
||||
if( !array_key_exists( $stringToCheck, $languageStrings ) )
|
||||
foreach( $_extensions as $extensionType => $extensions )
|
||||
{
|
||||
$missingAdminStrings['filestorage'][] = $stringToCheck;
|
||||
if( !isset( $extensionStrings[ $extensionType ] ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach( $extensions as $extensionName => $extensionClass )
|
||||
{
|
||||
$stringToCheck = str_replace( [ '{app}', '{key}' ], [ $this->application->directory, $extensionName ], $extensionStrings[ $extensionType ] );
|
||||
if( !array_key_exists( $stringToCheck, $languageStrings ) )
|
||||
{
|
||||
$missingAdminStrings[ strtolower( $extensionType ) ][] = $stringToCheck;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user