Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -423,4 +423,23 @@ class Developer
|
||||
}
|
||||
return $handler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the file path for an application's language file.
|
||||
* Can optionally add the IDE Handler link so that the link can be opened in an IDE
|
||||
*
|
||||
* @param Application $application The application instance.
|
||||
* @param bool $ideHandlerSupport Indicates whether the IDE handler support is enabled.
|
||||
* @return string|bool The language file path as a string if it exists, or FALSE if the file does not exist.
|
||||
*/
|
||||
public static function getApplicationsLanguageFilePath( Application $application, bool $ideHandlerSupport = TRUE ): string|bool
|
||||
{
|
||||
$path = \IPS\ROOT_PATH.'/applications/'. $application->directory . '/dev/lang.php';
|
||||
|
||||
if ( file_exists( $path ) and $ideHandlerSupport and $path = static::getIdeHref( $path ) )
|
||||
{
|
||||
return $path;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user