From cd57abc0495400c82fa7070a40792af55614ca4d Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 13 Jul 2016 15:31:23 +0000 Subject: More fixes related to running in Ubuntu 14.04 environment --- diff --git a/bin/maintenance.php b/bin/maintenance.php index 39ae95b..0a4c00d 100755 --- a/bin/maintenance.php +++ b/bin/maintenance.php @@ -592,7 +592,7 @@ switch ($action) { UPDATE collections SET rating= IFNULL( - CAST(upvotes - downvotes AS SIGNED) * LN(upvotes + downvotes), + (CAST(upvotes AS SIGNED) - CAST(downvotes AS SIGNED)) * LN(upvotes + downvotes), 0) "); $affected_rows = mysql_affected_rows(); diff --git a/site/app/views/addons/policy.thtml b/site/app/views/addons/policy.thtml index e438473..d81d748 100644 --- a/site/app/views/addons/policy.thtml +++ b/site/app/views/addons/policy.thtml @@ -66,7 +66,7 @@ else
-

Tag Manager

- setPaging($paging); // Initialize the pagination variables $th = array ( $pagination->sortBy('tag_text','Tag','Tag'), @@ -73,7 +73,7 @@ } } - ?>
renderElement('pagination'); ?> diff --git a/site/app/views/editors/review.thtml b/site/app/views/editors/review.thtml index f3e728e..f6547ee 100644 --- a/site/app/views/editors/review.thtml +++ b/site/app/views/editors/review.thtml @@ -219,7 +219,7 @@ } if ($reviewType == 'pending') { ?> -
diff --git a/site/app/views/editors/reviews_queue.thtml b/site/app/views/editors/reviews_queue.thtml index 23873aa..6b5465b 100644 --- a/site/app/views/editors/reviews_queue.thtml +++ b/site/app/views/editors/reviews_queue.thtml @@ -106,7 +106,7 @@
-submit(___('Process Reviews')); echo ''; diff --git a/site/app/views/elements/developers/editors_review_history_item.thtml b/site/app/views/elements/developers/editors_review_history_item.thtml index 3eece81..9866462 100644 --- a/site/app/views/elements/developers/editors_review_history_item.thtml +++ b/site/app/views/elements/developers/editors_review_history_item.thtml @@ -54,7 +54,7 @@ else } ?> - - - diff --git a/site/app/views/reviews/display.thtml b/site/app/views/reviews/display.thtml index bf64b95..50c2920 100644 --- a/site/app/views/reviews/display.thtml +++ b/site/app/views/reviews/display.thtml @@ -59,7 +59,7 @@ $bare = isset($_GET['bare']) ? ( $_GET['bare'] == 1 ) : FALSE;