mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Update dashboard
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Date;
|
||||
|
||||
/**
|
||||
* App\News
|
||||
@@ -63,7 +64,10 @@ class News extends Model
|
||||
{
|
||||
if($event->use_weekly_msg == 1)
|
||||
{
|
||||
$news->push(self::getWeeklyMsg($event));
|
||||
if (strtotime($event->weekly_msg_publication_time) <= time())
|
||||
{
|
||||
$news->push(self::getWeeklyMsg($event));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user