Revision 1992
Added by Luisehahne about 12 years ago
| details.php | ||
|---|---|---|
| 39 | 39 | 
     | 
| 40 | 40 | 
    // Check if the template exists  | 
| 41 | 41 | 
    if(!is_dir(WB_PATH.'/modules/'.$file)) {
   | 
| 42 | 
    $admin->print_error($mLang->MESSAGE_GENERIC_NOT_INSTALLED);  | 
|
| 42 | 
    	$admin->print_error($file.'::'.$mLang->MESSAGE_GENERIC_NOT_INSTALLED);
   | 
|
| 43 | 43 | 
    }  | 
| 44 | 44 | 
     | 
| 45 | 45 | 
    // Check if the template exists  | 
| ... | ... | |
| 55 | 55 | 
     | 
| 56 | 56 | 
    // Insert values  | 
| 57 | 57 | 
    $module = false;  | 
| 58 | 
    $sql = 'SELECT * FROM `'.TABLE_PREFIX.'addons` '  | 
|
| 59 | 
    . 'WHERE `type`=\'module\' AND `directory`=\''.$file.'\'';  | 
|
| 58 | 
    $sql = 'SELECT * FROM `'.TABLE_PREFIX.'addons` '  | 
|
| 59 | 
    . 'WHERE `type` = \'module\' '  | 
|
| 60 | 
    . 'AND `directory`= \''.$file.'\' ';  | 
|
| 60 | 61 | 
    if( ($result = $database->query($sql)) ){
   | 
| 61 | 62 | 
    $module = $result->fetchRow(MYSQL_ASSOC);  | 
| 62 | 63 | 
    }  | 
Also available in: Unified diff
! /admin/modules/index.php : captions of module lists changed from `directory` to real `name` and sorted by name