Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -128,16 +128,8 @@ trait Featurable
|
||||
*/
|
||||
public static function featured( $limit=10, $order='RAND()', $thisClassOnly=true ): ActiveRecordIterator
|
||||
{
|
||||
$where = [ [ 'promote_hide=0' ] ];
|
||||
|
||||
if ( $thisClassOnly )
|
||||
{
|
||||
$where[] = [ 'promote_class=?', get_called_class() ];
|
||||
}
|
||||
|
||||
$where = array( array( static::$databaseTable . '.' . static::$databasePrefix . static::$databaseColumnMap['featured'] . '=?', 1 ) );
|
||||
|
||||
|
||||
if ( in_array( 'IPS\Content\FuturePublishing', class_implements( get_called_class() ) ) )
|
||||
{
|
||||
$where[] = array( static::$databaseTable . '.' . static::$databasePrefix . static::$databaseColumnMap['is_future_entry'] . '=?', 0 );
|
||||
|
||||
Reference in new issue
Block a user