// Context part 25
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7794 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -99,9 +99,8 @@ class AdminPDF extends AdminPreferences
|
||||
|
||||
public function display()
|
||||
{
|
||||
$context = Context::getContext();
|
||||
if (!Validate::isLoadedObject($context->language))
|
||||
if (!Validate::isLoadedObject($this->context->language))
|
||||
die(Tools::displayError());
|
||||
$this->_displayForm('PDF', $this->_fieldsPDF, $this->l('PDF settings for the current language:').' '.$context->language->name, 'width2', 'pdf');
|
||||
$this->_displayForm('PDF', $this->_fieldsPDF, $this->l('PDF settings for the current language:').' '.$this->context->language->name, 'width2', 'pdf');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user