Project

General

Profile

« Previous | Next » 

Revision 1920

Added by Dietmar about 11 years ago

! /modules/admin.php $sSectionIdPrefix
! /admin/media/upload.php change $database->query($sql) to $database->get_one($sql)
! /upgrade-script.php only systemadministartor can call the script
upgrade all dev-module inclding in package

View differences:

upload.php
69 69
// Get list of file types to which we're supposed to append 'txt'
70 70
$sql = 'SELECT `value` FROM  `'.TABLE_PREFIX. 'settings` '.
71 71
       'WHERE `name`=\'rename_files_on_upload\'';
72
if( ($file_extension_string = $database->get_one($sql))=='' ) {
73
//    $aResult = $oRes->fetchRow(MYSQL_ASSOC);
74
//    $file_extension_string = $aResult['value'];
72 75

  
73
if($oRes = $database->query($sql)) {
74
    $aResult = $oRes->fetchRow(MYSQL_ASSOC);
75
    $file_extension_string = $aResult['value'];
76 76
}
77 77

  
78 78
$file_extensions=explode(",",$file_extension_string);

Also available in: Unified diff