From: <ok...@us...> - 2003-01-07 21:33:43
|
Update of /cvsroot/xoops/xoops2/modules/system/admin/preferences In directory sc8-pr-cvs1:/tmp/cvs-serv14503/modules/system/admin/preferences Modified Files: main.php Log Message: added global comments feature Index: main.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/system/admin/preferences/main.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.php 2 Jan 2003 20:12:28 -0000 1.1 --- main.php 7 Jan 2003 21:32:37 -0000 1.2 *************** *** 200,203 **** --- 200,209 ---- include_once XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname').'/language/'.$xoopsConfig['language'].'/modinfo.php'; } + + // if has comments feature, need comment lang file + if ($module->getVar('hascomments') == 1) { + include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/comment.php'; + } + $modname = $module->getVar('name'); $form->addElement(new XoopsFormHidden('redirect', XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.$module->getInfo('adminindex'))); |