Version 5.0.0 beta 5

This commit is contained in:
Neo committed 2025-12-19 17:04:22 -08:00
1 parent 2f24f9de48
commit 57d9db6ce2
218 files changed
+5331 -7416

No files matched your search

@@ -217,7 +217,7 @@ class Feature extends ActiveRecord
if ( $this->object === NULL )
{
$class = $this->class;
if( IPS::classUsesTrait( $class, 'IPS\Content\Featurable' ) )
if( class_exists( $class ) and IPS::classUsesTrait( $class, 'IPS\Content\Featurable' ) )
{
$this->object = $class::load( $this->class_id );
}
@@ -649,6 +649,13 @@ class Feature extends ActiveRecord
{
$object = parent::constructFromData( $data, $updateMultitonStoreIfExists );
static::$classAndIdLookup[ $object->class ][ $object->class_id ] = $object->id;
/* If the class does not exist, throw an exception */
if( !class_exists( $object->class ) )
{
throw new OutOfRangeException;
}
return $object;
}