Commit 44cdfbf0 authored by Tino Goratsch's avatar Tino Goratsch

renamed the method Lang::getLanguage2Characters() to Lang::getShortIsoCode()

parent 93892ba1
......@@ -86,7 +86,7 @@ class Lang
/**
* @return string
*/
public function getLanguage2Characters()
public function getShortIsoCode()
{
return substr($this->getLanguage(), 0, strpos($this->getLanguage(), '_'));
}
......
......@@ -80,7 +80,7 @@ abstract class FrontendController extends Core\Modules\Controller
$this->view->assign('IS_HOMEPAGE', $this->request->isHomepage());
$this->view->assign('IS_AJAX', $this->request->isAjax());
$this->view->assign('LANG_DIRECTION', $this->lang->getDirection());
$this->view->assign('LANG', $this->lang->getLanguage2Characters());
$this->view->assign('LANG', $this->lang->getShortIsoCode());
return parent::preDispatch();
}
......
......@@ -19,7 +19,7 @@ class User
/**
* @var integer
*/
public $entriesPerPage = 0;
protected $entriesPerPage = 0;
/**
* @var string
*/
......
......@@ -96,7 +96,7 @@ class Controller implements ControllerInterface
$languageInfo = simplexml_load_file(INSTALLER_MODULES_DIR . 'Install/Languages/' . $this->lang->getLanguage() . '.xml');
$this->view->assign('LANG_DIRECTION', isset($languageInfo->info->direction) ? $languageInfo->info->direction : 'ltr');
$this->view->assign('LANG', $this->lang->getLanguage2Characters());
$this->view->assign('LANG', $this->lang->getShortIsoCode());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment