I am having problems with my Obscure Contact Up ext in 3.1.10.
I have read through both topics about this, and I am no further forward. The migrator thats causing the problem is below. Any ideas how I can fix this? Everything I have tried so far doesn't work.
Code: Select all
<?php
/**
*
* @package phpBB Extension - Obscure Contact Us
* @copyright (c) 2015 - HiFiKabin
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
namespace hifikabin\obscurecontactus\migrations;
class obscurecontactus_1_0_3 extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array('\hifikabin\obscurecontactus\migrations\obscurecontactus_1_0_2');
}
public function update_data()
{
return array(
// Remove the incorrect ACP module
array('module.remove', array('acp', 'ACP_CAT_DOT_MODS', 'ACP_OBSCURECONTACTUS')),
array('module.remove', array(
'acp', 'ACP_OBSCURECONTACTUS', array(
'module_basename' => '\hifikabin\obscurecontactus\acp\obscurecontactus_module',
'modes' => array('main'),
),
)),
// Add the correct ACP module
array('module.add', array('acp', 'ACP_CAT_DOT_MODS', 'ACP_OBSCURECONTACTUS')),
array('module.add', array(
'acp', 'ACP_OBSCURECONTACTUS', array(
'module_basename' => '\hifikabin\obscurecontactus\acp\obscurecontactus_module',
'modes' => array('config'),
),
)),
//Update Version
array('config.update', array('obscurecontactus_version', '1.0.3')),
);
}
}