refactor(plg): include Translations wrapper in translation class

This commit is contained in:
Zack Spear
2023-11-15 13:01:44 -08:00
parent 81f7f41b3b
commit 5ebce0ebfc

View File

@@ -34,6 +34,9 @@
* $wCTranslations->getTranslations();
* ```
*/
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
require_once "$docroot/webGui/include/Translations.php";
class WebComponentTranslations
{
private $translations = [];