|
@@ -142,8 +142,8 @@ |
|
|
block discarded – undo |
|
142
|
142
|
$file = $this->app->get('blogfile'); |
|
143
|
143
|
$data = json_decode(file_get_contents($file), true); |
|
144
|
144
|
|
|
145
|
|
- uasort($data, function ($a, $b) { |
|
146
|
|
- if(strpos($a['body'],'cross post') === false) { |
|
|
145
|
+ uasort($data, function($a, $b) { |
|
|
146
|
+ if (strpos($a['body'], 'cross post') === false) { |
|
147
|
147
|
$a = count($a['active_votes']); |
|
148
|
148
|
$b = count($b['active_votes']); |
|
149
|
149
|
return ($a == $b) ? 0 : (($a > $b) ? -1 : 1); |
Please login to merge, or discard this patch.