Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -111,11 +111,15 @@ class cms_hook_Post extends _HOOK_CLASS_
|
||||
if ( ! \in_array( $category['category_database_id'], $synced ) )
|
||||
{
|
||||
$class = '\IPS\cms\Records' . $category['category_database_id'];
|
||||
$object = $class::load( $item->tid, 'record_topicid' );
|
||||
$object->syncRecordFromTopic( $item );
|
||||
|
||||
/* Successful sync (no exception thrown, so lets skip this database from now on */
|
||||
$synced[] = $category['category_database_id'];
|
||||
if( class_exists( $class ) )
|
||||
{
|
||||
$object = $class::load( $item->tid, 'record_topicid' );
|
||||
$object->syncRecordFromTopic( $item );
|
||||
|
||||
/* Successful sync (no exception thrown, so lets skip this database from now on */
|
||||
$synced[] = $category['category_database_id'];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch( \Exception $ex )
|
||||
@@ -130,8 +134,11 @@ class cms_hook_Post extends _HOOK_CLASS_
|
||||
if ( ! \in_array( $database['database_id'], $synced ) )
|
||||
{
|
||||
$class = '\IPS\cms\Records' . $database['database_id'];
|
||||
$object = $class::load( $item->tid, 'record_topicid' );
|
||||
$object->syncRecordFromTopic( $item );
|
||||
if( class_exists( $class ) )
|
||||
{
|
||||
$object = $class::load( $item->tid, 'record_topicid' );
|
||||
$object->syncRecordFromTopic( $item );
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( \Exception $ex )
|
||||
|
||||
@@ -17,7 +17,7 @@ class cms_hook_apiForum extends _HOOK_CLASS_
|
||||
* @throws 2F363/6 The target node cannot be deleted because it is in use by a CMS Database
|
||||
* @return \IPS\Api\Response
|
||||
*/
|
||||
public function _delete( $id, $deleteChildrenOrMove = NULL )
|
||||
protected function _delete( $id, $deleteChildrenOrMove = NULL )
|
||||
{
|
||||
$nodeClass = $this->class;
|
||||
|
||||
|
||||
Reference in new issue
Block a user