Version 5.0.14
This commit is contained in:
1 parent
5efe744c5f
commit
dbd774b30c
364 files changed
+7048
-1377
No files matched your search
@@ -204,6 +204,7 @@ class Controller extends CoverPhotoController
|
||||
/* We also want to update the views if we have a page parameter */
|
||||
if( IPS::classUsesTrait( $item, 'IPS\Content\ViewUpdates' ) and isset( $class::$databaseColumnMap['views'] ) AND isset( Request::i()->page ) AND Request::i()->page )
|
||||
{
|
||||
/* @var $item ViewUpdates */
|
||||
$item->updateViews();
|
||||
}
|
||||
|
||||
@@ -297,6 +298,7 @@ class Controller extends CoverPhotoController
|
||||
$idColumn = $class::$databaseColumnId;
|
||||
if ( IPS::classUsesTrait( $class, 'IPS\Content\ViewUpdates' ) AND isset( $class::$databaseColumnMap['views'] ) )
|
||||
{
|
||||
/* @var $item ViewUpdates */
|
||||
$item->updateViews();
|
||||
}
|
||||
else
|
||||
@@ -4775,7 +4777,7 @@ class Controller extends CoverPhotoController
|
||||
'promotype' => 'promote'
|
||||
] );
|
||||
|
||||
Webhook::fire( 'content_promoted', $item );
|
||||
Webhook::fire( 'content_promoted', $promote );
|
||||
|
||||
Output::i()->redirect( $objectToPromote->url(), Member::loggedIn()->language()->addToStack( 'promote_complete' ) );
|
||||
}
|
||||
@@ -5024,7 +5026,7 @@ class Controller extends CoverPhotoController
|
||||
$promote->setText( $values['promote_internal_text'] );
|
||||
$promote->save();
|
||||
|
||||
Webhook::fire( 'content_promoted', $item );
|
||||
Webhook::fire( 'content_promoted', $promote );
|
||||
|
||||
/* Redirect back to the list */
|
||||
Output::i()->redirect( Url::internal( 'app=core&module=modcp&controller=modcp&tab=featured', 'front', 'modcp_featured' ), 'saved' );
|
||||
|
||||
Reference in new issue
Block a user