Beispiel #1
0
 protected function _isUpToDate()
 {
     $upgrader = new Upgrader();
     if (!is_object($upgrader)) {
         PS_CLI_Interface::error("Could not load upgrader module");
     }
     if ($upgrader->isLastVersion() === false) {
         PS_CLI_Interface::success('This PrestaShop install needs to be updated');
     } else {
         PS_CLI_Interface::error('This PrestaShop install is up to date');
     }
 }