@@ -43,13 +43,13 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | public static function getAllTags() { |
46 | - global $config; |
|
46 | + global $config; |
|
47 | 47 | |
48 | - $sql = self::SQL_ALL_TAGS; |
|
49 | - $sortField = $config['calibre_database_field_sort']; |
|
50 | - if (!empty($sortField)) { |
|
51 | - $sql = str_replace('tags.name', 'tags.' . $sortField, $sql); |
|
52 | - } |
|
48 | + $sql = self::SQL_ALL_TAGS; |
|
49 | + $sortField = $config['calibre_database_field_sort']; |
|
50 | + if (!empty($sortField)) { |
|
51 | + $sql = str_replace('tags.name', 'tags.' . $sortField, $sql); |
|
52 | + } |
|
53 | 53 | |
54 | 54 | return Base::getEntryArrayWithBookNumber ($sql, self::TAG_COLUMNS, array (), "Tag"); |
55 | 55 | } |