// Context part 9

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7637 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-18 10:08:07 +00:00
parent 311e8ab964
commit 0dbcebf01e
39 changed files with 290 additions and 445 deletions
+2 -7
View File
@@ -29,8 +29,6 @@ class AdminInvoices extends AdminTab
{
public function __construct()
{
global $cookie;
$this->table = 'invoice';
$this->optionTitle = $this->l('Invoice options');
@@ -45,9 +43,8 @@ class AdminInvoices extends AdminTab
public function displayForm($isMainTab = true)
{
global $currentIndex, $cookie;
$statuses = OrderState::getOrderStates($cookie->id_lang);
$context = Context::getContext();
$statuses = OrderState::getOrderStates($context->language->id);
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
SELECT COUNT(*) as nbOrders, (
SELECT oh.id_order_state
@@ -117,8 +114,6 @@ class AdminInvoices extends AdminTab
public function postProcess()
{
global $currentIndex;
if (Tools::isSubmit('submitPrint'))
{
if (!Validate::isDate(Tools::getValue('date_from')))