update v1.0.7.9 R.C.

This is a Release Candidate. We are still testing.
This commit is contained in:
Sujit Prasad
2016-08-03 20:04:36 +05:30
parent 8b6b924d09
commit ffa56a43cb
3830 changed files with 181529 additions and 495353 deletions

View File

@@ -24,12 +24,12 @@ class CheckUpdate
if ($check == true) {
//$this->notificationBar();
$this->checkNewUpdate();
if (Utility::getFileVersion() > Utility::getDatabaseVersion()) {
return redirect('database-update');
}
if (Utility::getFileVersion() < Utility::getDatabaseVersion()) {
return redirect('file-update');
}
// if (Utility::getFileVersion() > Utility::getDatabaseVersion()) {
// return redirect('database-update');
// }
// if (Utility::getFileVersion() < Utility::getDatabaseVersion()) {
// return redirect('file-update');
// }
}
return $next($request);
@@ -56,7 +56,7 @@ class CheckUpdate
$not = $notify->get();
if ($not->count() > 0) {
$now = \Carbon\Carbon::now();
$yesterday = \Carbon\Carbon::now(-24);
$yesterday = \Carbon\Carbon::yesterday();
$notifications = $notify->whereBetween('created_at', [$yesterday, $now])->lists('value', 'key');
$todelete = $notify->where('created_at', '<', $yesterday)->get();
if ($todelete->count() > 0) {
@@ -113,7 +113,7 @@ class CheckUpdate
if ($n) {
$now = \Carbon\Carbon::now();
$yesterday = \Carbon\Carbon::now(-24);
$yesterday = \Carbon\Carbon::yesterday();
$notifications = $notify->where('key', 'new-version')->whereBetween('created_at', [$yesterday, $now])->lists('value', 'key');
if ($notifications->count() > 0) {
return false;