예제 #1
0
 /**
  * Constructor which runs a few checks
  *
  * @package MobilePress
  * @since 1.2
  */
 public function __construct()
 {
     if (MOPR_DBVERSION < MOPR_VERSION) {
         require_once MOPR_PATH . 'classes/setup.php';
         $mobilepress_setup = new Mobilepress_setup();
         $mobilepress_setup->mopr_install();
     }
 }
예제 #2
0
 /**
  * Uninstalls the plugin
  *
  * @package MobilePress
  * @since 1.2
  */
 public function mopr_load_uninstall()
 {
     require_once MOPR_PATH . 'classes/setup.php';
     $mobilepress_setup = new Mobilepress_setup();
     $mobilepress_setup->mopr_uninstall();
 }