use Dotclear L10n Helper
This commit is contained in:
parent
7528bd357c
commit
fe0b009122
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user