From: <rob...@us...> - 2011-12-14 17:01:05
|
Revision: 39188 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=39188&view=rev Author: robertplummer Date: 2011-12-14 17:00:59 +0000 (Wed, 14 Dec 2011) Log Message: ----------- [FIX] Changed how files are deleted Modified Paths: -------------- trunk/lib/core/FileGallery/File.php Modified: trunk/lib/core/FileGallery/File.php =================================================================== --- trunk/lib/core/FileGallery/File.php 2011-12-14 17:00:09 UTC (rev 39187) +++ trunk/lib/core/FileGallery/File.php 2011-12-14 17:00:59 UTC (rev 39188) @@ -158,9 +158,7 @@ function delete() { - global $tikilib; - $files = $tikilib->table('tiki_files'); - $files->delete(array('fileId' => $this->getParam('fileId'))); + TikiLib::lib("filegal")->remove_file($this->params); } function diffLatestWithArchive($archive = 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |