Commit 50cabe55 authored by Jean-Paul Saman's avatar Jean-Paul Saman

setup.php: require web2project >= 3.0.0

parent d5b710fe
......@@ -6,7 +6,7 @@ if (!defined('W2P_BASE_DIR')) {
/* Help Desk module definitions */
$config = array();
$config['mod_name'] = 'HelpDesk';
$config['mod_version'] = '0.8';
$config['mod_version'] = '0.9';
$config['mod_directory'] = 'helpdesk';
$config['mod_setup_class'] = 'CSetupHelpDesk';
$config['mod_type'] = 'user';
......@@ -24,6 +24,10 @@ if (@$a == 'setup') {
print w2PshowModuleConfig( $config );
}
$config['requirements'] = array(
array('require' => 'web2project', 'comparator' => '>=', 'version' => '3')
);
class CSetupHelpDesk extends w2p_System_Setup
{
public function install()
......@@ -313,6 +317,7 @@ class CSetupHelpDesk extends w2p_System_Setup
return false;
}
break;
case 0.9:
default:
$success = 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment