Version 4.1.19

This commit is contained in:
Neo committed 2025-12-19 05:38:56 -08:00
1 parent 28bd025b35
commit 2bd5025018
2674 files changed
+233518 -77766

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
exit;
}
class downloads_hook_Forums extends _HOOK_CLASS_
{
/**
* Delete Record
*
* @return void
*/
public function delete()
{
foreach( new \IPS\Patterns\ActiveRecordIterator( \IPS\Db::i()->select( '*', 'downloads_categories', array( "cforum_id=?", $this->_id ) ), 'IPS\downloads\Category' ) AS $category )
{
$category->forum_id = 0;
$category->save();
}
return call_user_func_array( 'parent::delete', func_get_args() );
}
}