Changeset 614
- Timestamp:
- Dec 20, 2013, 10:28:35 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r613 r614 1 1 <?php 2 2 3 $Revision = 61 3; // Subversion revision3 $Revision = 614; // Subversion revision 4 4 $DatabaseRevision = 601; // SQL structure revision 5 5 $ReleaseTime = '2013-12-20'; -
trunk/Modules/News/News.php
r607 r614 12 12 { 13 13 var $NewsCountPerCategory = 3; 14 var $UploadedFilesFolder = ' uploads/';14 var $UploadedFilesFolder = 'files/news/'; 15 15 16 16 function __construct($System) -
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.