Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -28,7 +28,6 @@ class _Records extends \IPS\Content\Item implements
|
||||
\IPS\Content\Followable,
|
||||
\IPS\Content\Shareable,
|
||||
\IPS\Content\ReadMarkers,
|
||||
\IPS\Content\Views,
|
||||
\IPS\Content\Ratings,
|
||||
\IPS\Content\Searchable,
|
||||
\IPS\Content\FuturePublishing,
|
||||
@@ -36,7 +35,7 @@ class _Records extends \IPS\Content\Item implements
|
||||
\IPS\Content\MetaData,
|
||||
\IPS\Content\Anonymous
|
||||
{
|
||||
use \IPS\Content\Reactable, \IPS\Content\Reportable;
|
||||
use \IPS\Content\Reactable, \IPS\Content\Reportable, \IPS\Content\Statistics, \IPS\Content\ViewUpdates;
|
||||
|
||||
/**
|
||||
* @brief Multiton Store
|
||||
@@ -1281,7 +1280,7 @@ class _Records extends \IPS\Content\Item implements
|
||||
$return['comments'] = (int) $this->mapped('num_comments');
|
||||
}
|
||||
|
||||
if ( $this instanceof \IPS\Content\Views )
|
||||
if ( \IPS\IPS::classUsesTrait( $this, 'IPS\Content\ViewUpdates' ) )
|
||||
{
|
||||
$return['num_views'] = (int) $this->mapped('views');
|
||||
}
|
||||
@@ -3276,7 +3275,7 @@ class _Records extends \IPS\Content\Item implements
|
||||
}
|
||||
|
||||
/* Am I a Moderator with edit permissions ?*/
|
||||
if( $this->container()->modPermission( 'edit', $member, \get_called_class() ) )
|
||||
if ( static::modPermission( 'edit', $member, $this->containerWrapper() ) )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
@@ -4067,14 +4066,5 @@ class _Records extends \IPS\Content\Item implements
|
||||
* @var bool
|
||||
*/
|
||||
public static bool $allowPublishDateWhileEditing = TRUE;
|
||||
|
||||
/**
|
||||
* Allow editing of the publish date from existing records
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected static function supportsPublishDate( ?\IPS\Content\Item $item ): bool
|
||||
{
|
||||
return !static::database()->forum_record AND parent::supportsPublishDate($item);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user