Ignore:
Timestamp:
Nov 1, 2010, 10:51:58 PM (13 years ago)
Author:
grum
Message:

fix bug:1487 - LMT image not displayed with IE8
implement feature:1689 - Add possibility to search picture by licence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/lmt_install.class.inc.php

    r5548 r7560  
    2828      parent::__construct($prefixeTable, $filelocation);
    2929      $this->tablef= new GPCTables($this->tables);
    30       $this->exportfile=dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().'.sql';
    3130    }
    3231
     
    7170      );
    7271
    73       //if present, try to import backup
    74       //if backup file
    75       $import=$this->tablef->import($this->exportfile);
    76       if($import['errors']<0)
    77       {
    78         $result=$this->tablef->create($tables_def);
    79         return($result);
    80       }
    81       else
    82       {
    83         return(true);
    84       }
     72      $result=$this->tablef->create($tables_def);
     73      GPCCore::register($this->getPluginName(), LMT_VERSION, LMT_GPC_NEEDED);
     74
     75      return($result);
    8576    }
    86 
    8777
    8878    /*
     
    9181    public function uninstall()
    9282    {
    93       $this->tablef->export($this->exportfile);
    9483      $this->deleteConfig();
    9584      $this->tablef->drop();
     85      GPCCore::unregister($this->getPluginName());
    9686      return('');
    9787    }
     
    10595      $this->config['installed']=LMT_VERSION2;
    10696      $this->saveConfig();
     97
     98      GPCCore::register($this->getPluginName(), LMT_VERSION, LMT_GPC_NEEDED);
     99      GPCRequestBuilder::register($this->getPluginName(), dirname($this->getFileLocation()).'/lmt_rb_callback.class.inc.php');
    107100      return('');
    108101    }
     
    110103    public function deactivate()
    111104    {
     105      GPCRequestBuilder::unregister($this->getPluginName());
    112106    }
    113 
    114107  } //class
    115108
Note: See TracChangeset for help on using the changeset viewer.