ja_mageia


 


本站遵守 Creative Commons License 许可 转载时务必以超链接形式标明文章原始出处和作者信息 
  • Narrow screen resolution
  • Wide screen resolution
  • Increase font size
  • Decrease font size
  • Default font size
Home IT Knowledge Joomla Remository 3.42 无法删除 Orphans 文件
Joomla
Remository 3.42 无法删除 Orphans 文件 PDF Print E-mail
(0 votes, average 0 out of 5)
Written by Administrator   
Monday, 12 November 2007 01:22
用FTP client上传文件到指定目录下,可以在 ReMOSitory Orphans中看到上传的文件,但是却无法删除,解决办法如下:

修改 ../components/com_remository/c-admin-classes/remositoryAdminUnlinked.php
找到代码
foreach ($cfid as $file) {
  if (isset($OrphanDownloads[$file]) OR isset($OrphanUploads[$file])) @unlink($file);
}

改为
foreach ($cfid as $file) {
  if (in_array($file, $OrphanDownloads) OR in_array($file,$OrphanUploads)) @unlink($file);
 }

Last Updated on Sunday, 08 February 2009 07:20
 

Add comment


Security code
Refresh

Login Form



Who's Online

We have 3 guests online