
12-02-2012, 06:30 AM
|
|
|
Join Date: Aug 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by kh99
There is no setting to disable deleting unused attachments. If you want to disable it, you would need to edit includes/cron/cleanup2.php and find this:
Code:
// Orphaned Attachments are removed after one hour
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("a.contentid = 0 AND a.dateline < " . (TIMENOW - 3600));
$attachdata->delete(true, false);
either delete it or comment it out (put // at the start of each line). Edit: Of course that won't make the message go away, you'd need to delete that separately.
|
Thanks kh99 so much!
|