Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
[-] You can't use $this in upgrade file, use $object
Browse files Browse the repository at this point in the history
  • Loading branch information
prestamodule committed Aug 21, 2015
1 parent b16673c commit ca2e559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upgrade/install-2.0.0.php
Expand Up @@ -7,8 +7,8 @@ function upgrade_module_2_0_0($object)
{
$return = true;

$return &= $this->registerHook('displayCustomerIdentityForm');
$return &= $this->unregisterHook('header');
$return &= $object->registerHook('displayCustomerIdentityForm');
$return &= $object->unregisterHook('header');

$langs = Language::getLanguages(false);
$old_messages = array();
Expand Down

0 comments on commit ca2e559

Please sign in to comment.