// login form
This commit is contained in:
@@ -28,6 +28,7 @@ class AdminLoginControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
$this->bootstrap = true;
|
||||||
$this->errors = array();
|
$this->errors = array();
|
||||||
$this->context = Context::getContext();
|
$this->context = Context::getContext();
|
||||||
$this->display_header = false;
|
$this->display_header = false;
|
||||||
@@ -40,8 +41,10 @@ class AdminLoginControllerCore extends AdminController
|
|||||||
|
|
||||||
public function setMedia()
|
public function setMedia()
|
||||||
{
|
{
|
||||||
|
$admin_webpath = str_ireplace(_PS_ROOT_DIR_, '', _PS_ADMIN_DIR_);
|
||||||
|
$admin_webpath = preg_replace('/^'.preg_quote(DIRECTORY_SEPARATOR, '/').'/', '', $admin_webpath);
|
||||||
$this->addJquery();
|
$this->addJquery();
|
||||||
$this->addCSS(_PS_CSS_DIR_.'login.css');
|
$this->addCSS('/'.$admin_webpath.'/themes/'.$this->bo_theme.'/css/admin-theme.css');
|
||||||
$this->addJS(_PS_JS_DIR_.'login.js');
|
$this->addJS(_PS_JS_DIR_.'login.js');
|
||||||
$this->addJqueryUI('ui.widget');
|
$this->addJqueryUI('ui.widget');
|
||||||
$this->addJqueryUI('effects.shake');
|
$this->addJqueryUI('effects.shake');
|
||||||
|
|||||||
Reference in New Issue
Block a user