Bug tracker

Adding Module (fix completed in vcs)

If you want to add a module with no parent using the following code

Code: Select all
'module_add' => array(
    array('new_module', 0, 'MODULE_LANG_NAME'),
),


or

Code: Select all
'module_add' => array(
    array('new_module', '', 'MODULE_LANG_NAME'),
),


If will fail saying that the parent module can not be found.

Comments / History

Posted by Sajaki on Oct 31st 2009, 16:08

Indeed. this used to work in Umil 1.0

i have :
Code: Select all
$umil->module_add('acp', 0, 'DKP')

and i get this error also:
ERROR: The parent category specified for this module does not exist.

is this intended ? I'd like to create a category in a new tab.

Edited post #194275

Action performed by Sajaki on Oct 31st 2009, 16:44

Linked ticket with changeset: r182

Action performed by EXreaction (Former Team Member) on Oct 31st 2009, 16:49

Posted by EXreaction (Former Team Member) on Oct 31st 2009, 16:50

Fixed in SVN.

For now just grab the fixed file if needed:
http://code.phpbb.com/repositories/entr ... format=raw

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by EXreaction (Former Team Member) on Oct 31st 2009, 16:51

Posted by Sajaki on Oct 31st 2009, 18:28

hmm, but now it bugs on the next line 1252 since the check always returns true now.

if ($this->module_exists($class, $parent, $data['module_langname']))
{
return $this->umil_end('MODULE_ALREADY_EXIST');
}

Posted by michaelo (QA Team) on Nov 1st 2009, 15:15

The fix worked for me...

Ticket details

Related SVN changesets