Changeset 9897

Show
Ignore:
Timestamp:
11/13/08 05:59:05 (2 months ago)
Author:
afz
Message:

check error before showing in control panel

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/gadgets/ControlPanel/AdminHTML.php

    r9216 r9897  
    5454            if (!is_dir(JAWS_PATH . 'gadgets/' . $item)) continue; 
    5555            if ($item != '' && $item != 'ControlPanel' && in_array($item, $coreGadgets)) { 
    56                 Jaws_Gadget_Info::Init($item); 
     56                if (Jaws_Error::IsError(Jaws_GadgetInfo::Init($item))) { 
     57                    continue; 
     58                } 
     59 
    5760                if ($this->GetPermission('Manage'.$item, $item)) { 
    5861                    $general[] = array(_t(strtoupper($item).'_NAME'),