1
do we really need to specify the index number of arrays in the xoops_version.php file?
ex:
le="color: #000000"><?php $modversion['tables'][1] = 'flexsearch_category'; $modversion['tables'][2] = 'flexsearch_tree'; $modversion['tables'][3] = 'flexsearch_tree_type'; $modversion['tables'][4] = 'flexsearch_text'; $modversion['tables'][5] = 'flexsearch_data'; $modversion['tables'][6] = 'flexsearch_info';
than simply doing
le="color: #000000"><?php $modversion['tables'][] = 'flexsearch_category'; $modversion['tables'][] = 'flexsearch_tree'; $modversion['tables'][] = 'flexsearch_tree_type'; $modversion['tables'][] = 'flexsearch_text'; $modversion['tables'][] = 'flexsearch_data'; $modversion['tables'][] = 'flexsearch_info';
same goes with templates and anything else that requires an index number. not having to type in the index makes life so much easier when developing a new module; we don't have to renumber the array if we organize things in a specific order when adding in a new element.