1
luciorota
Why imgcat_type = 'C'
  • 2009/12/30 11:58

  • luciorota

  • Module Developer

  • Posts: 219

  • Since: 2007/4/20


Hi to everybody...
An issue that disturbs me sleep...

Why, in XOOPS core image manager, is
le="color: #000000"><?php $imagecategory->setVar('imgcat_type', 'C');

and imgcat_type is always set to 'C'?

What does 'C' stands for? Future features or vestigial features?

Thanks to the wise man who answers to this question

2
Dylian
Re: Why imgcat_type = 'C'
  • 2009/12/30 20:06

  • Dylian

  • Friend of XOOPS

  • Posts: 237

  • Since: 2007/7/21


I think C stands for CUSTOM category. Because it's not possible to delete a category where the type is set to C.

Don't know for sure but that's all i can see from te code.

from line 92:
le="color: #000000"><?php if (in_array(XOOPS_GROUP_ADMIN, $groups)) { echo ' [<a href="admin.php?fct=images&op=editcat&imgcat_id='.$imagecategorys[$i]->getVar('imgcat_id').'">'._EDIT.'</a>]'; if ($imagecategorys[$i]->getVar('imgcat_type') == 'C') { echo ' [<a href="admin.php?fct=images&op=delcat&imgcat_id='.$imagecategorys[$i]->getVar('imgcat_id').'">'._DELETE.'</a>]'; } }


from line 515:
le="color: #000000"><?php if ($imagecategory->getVar('imgcat_type') != 'C') { xoops_cp_header(); xoops_error(_MD_SCATDELNG); xoops_cp_footer(); exit(); }

Hope you can sleep now

Greets Dylian.

BTW Please mention the file you refer to the next time, it did take a time to figure out it was in modules\system\admin\images\main.php .