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

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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

Why, in XOOPS core image manager, is
$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:
if (in_array(XOOPS_GROUP_ADMIN$groups)) {
    echo 
' [.$imagecategorys[$i]->getVar('imgcat_id').'">'._EDIT.']';
   if (
$imagecategorys[$i]->getVar('imgcat_type') == 'C') {
        echo 
' [.$imagecategorys[$i]->getVar('imgcat_id').'">'._DELETE.']';
    }
}


from line 515:
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 .

Login

Who's Online

348 user(s) are online (260 user(s) are browsing Support Forums)


Members: 0


Guests: 348


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits