/**
  * Constructor.
  *
  * @param	vB_Registry	Reference to registry object
  */
 public function __construct(&$registry, $phrase, $maxversion)
 {
     parent::__construct($registry, $phrase, $maxversion);
     if (defined('SKIPDB')) {
         $this->caninstall = true;
         return;
     }
     require_once DIR . '/includes/class_upgrade_product.php';
     $this->product = new vB_Upgrade_Product($registry, $phrase['vbphrase'], true, $this->caller);
     $this->caninstall = $this->productresult = $this->product->verify_install('skimlinks');
 }
Example #2
0
 /**
  * Constructor.
  *
  * @param	vB_Registry	Reference to registry object
  */
 public function __construct(&$registry, $phrase, $maxversion)
 {
     parent::__construct($registry, $phrase, $maxversion);
     if (defined('SKIPDB')) {
         $this->caninstall = true;
         return;
     }
     require_once DIR . '/includes/class_upgrade_product.php';
     $this->product = new vB_Upgrade_Product($registry, $phrase['vbphrase'], true, $this->caller);
     if ($this->caninstall = ($this->productresult = $this->product->verify_install('vbblog')) === true) {
         if ($this->product->productinfo['version'] != $this->maxversion) {
             $this->caninstall = false;
             $this->productresult = sprintf($this->phrase['final']['mismatch_product_version'], $this->product->productinfo['version'], $this->maxversion);
         }
     }
 }