mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
refactor(plg): include Translations wrapper in translation class
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
* $wCTranslations->getTranslations();
|
||||
* ```
|
||||
*/
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
require_once "$docroot/webGui/include/Translations.php";
|
||||
|
||||
class WebComponentTranslations
|
||||
{
|
||||
private $translations = [];
|
||||
|
||||
Reference in New Issue
Block a user