use Dotclear L10n Helper

This commit is contained in:
Jean-Christian Paul Denis 2023-04-08 17:44:34 +02:00
parent 7528bd357c
commit fe0b009122
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -17,10 +17,10 @@ namespace Dotclear\Plugin\postInfoWidget;
use dcCore; use dcCore;
use dcRecord; use dcRecord;
use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Html;
use Dotclear\Helper\L10n;
use Dotclear\Plugin\widgets\WidgetsStack; use Dotclear\Plugin\widgets\WidgetsStack;
use Dotclear\Plugin\widgets\WidgetsElement; use Dotclear\Plugin\widgets\WidgetsElement;
use dt; use dt;
use l10n;
class Widgets class Widgets
{ {
@ -228,7 +228,7 @@ class Widgets
} }
if ($w->lang_str != '') { if ($w->lang_str != '') {
$ln = l10n::getISOcodes(); $ln = L10n::getISOcodes();
$lang_code = dcCore::app()->ctx->posts->f('post_lang') ? $lang_code = dcCore::app()->ctx->posts->f('post_lang') ?
dcCore::app()->ctx->posts->f('post_lang') : dcCore::app()->ctx->posts->f('post_lang') :
dcCore::app()->blog->settings->get('system')->get('lang'); dcCore::app()->blog->settings->get('system')->get('lang');