Changeset 614 for trunk/Modules/News/NewsPage.php
- Timestamp:
- Dec 20, 2013, 10:28:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/NewsPage.php
r607 r614 8 8 var $ShortTitle = 'Aktuality'; 9 9 var $ParentClass = 'PagePortal'; 10 var $UploadedFilesFolder = 'uploads/';10 var $UploadedFilesFolder; 11 11 12 12 function Show() 13 13 { 14 $this->UploadedFilesFolder = $this->System->ModuleManager->Modules['News']->UploadedFilesFolder; 14 15 if(count($this->System->PathItems) > 1) 15 16 { … … 382 383 383 384 // Get news from database by selected categories 384 $UploadedFilesFolder = 'uploads/';385 385 $DbResult = $this->Database->query('SELECT *, UNIX_TIMESTAMP(`Date`) AS `UnixTime` FROM `News` LEFT JOIN `User` ON `User`.`Id`=`News`.`User` WHERE '.$Where.' ORDER BY News.Date DESC LIMIT 0,'.$NewsCount); 386 386 while($Row = $DbResult->fetch_assoc()) … … 393 393 foreach($Enclosures as $Enclosure) 394 394 { 395 if(file_exists($ UploadedFilesFolder.$Enclosure))395 if(file_exists($this->UploadedFilesFolder.$Enclosure)) 396 396 $EnclosuresText .= ' <a href="'.$this->System->Link('/aktuality/'.$UploadedFilesFolder.$Enclosure).'">'.$Enclosure.'</a>'; 397 397 }
Note:
See TracChangeset
for help on using the changeset viewer.