diff --git a/core/dbengine.php b/core/dbengine.php index 4467a296..19502551 100644 --- a/core/dbengine.php +++ b/core/dbengine.php @@ -146,7 +146,7 @@ function _log($a, $b = null): float if (is_null($b)) { return log($a); } else { - return log($a, $b); + return log($b, $a); } } function _isnull($a): bool diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index 9fc49eba..ad22b6f2 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -390,7 +390,7 @@ class TagList extends Extension } $tag_data = $database->get_all(" - SELECT tag, count, FLOOR(LOG(count)) AS scaled + SELECT tag, count, FLOOR(LOG(10, count)) AS scaled FROM tags WHERE count >= :tags_min ORDER BY count DESC, tag ASC