Changeset 532 for trunk/Modules/News/News.php
- Timestamp:
- Apr 24, 2013, 9:09:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/News.php
r524 r532 43 43 function ShowNews($Category, $ItemCount, $DaysAgo) 44 44 { 45 global $NewsCategoryNames, $NewsCountPerCategory, $UploadedFilesFolder;46 47 45 $ItemCount = abs($ItemCount); 48 46 $DaysAgo = abs($DaysAgo); … … 56 54 $DbResult = $this->Database->query('SELECT `News`.*, `User`.`Name` FROM `News` LEFT JOIN `User` ON `User`.`Id`=`News`.`User` WHERE (`News`.`Category`='.$Category.') AND (DATE_SUB(NOW(), INTERVAL '.$DaysAgo.' DAY) < `News`.`Date`) ORDER BY `News`.`Date` DESC LIMIT 0,'.$ItemCount); 57 55 58 //echo('<table cellpadding="0" cellspacing="0" width="100%"><tr><td>');59 56 $Index = 0; 60 57 $FontSize = 12; … … 79 76 foreach($Enclosures as $Enclosure) 80 77 { 81 if(file_exists($UploadedFilesFolder.$Enclosure)) $Output .= ' <a href="'.$UploadedFilesFolder.$Enclosure.'">'.$Enclosure.'</a>'; 78 if(file_exists($this->UploadedFilesFolder.$Enclosure)) 79 $Output .= ' <a href="'.$this->UploadedFilesFolder.$Enclosure.'">'.$Enclosure.'</a>'; 82 80 } 83 81 } … … 119 117 $Output = ''; 120 118 121 $UploadedFilesFolder = 'aktuality/uploads/';122 119 $this->LoadSettingsFromCookies(); 123 120 … … 224 221 $Result .= $Content; 225 222 return($Result); 226 } 227 223 } 228 224 } 229 225
Note:
See TracChangeset
for help on using the changeset viewer.