diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index 19b14364c..918256f54 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -380,6 +380,7 @@ jQuery(document).ready( function() { .line-icon { padding: 10px; border-radius: 50%; + white-space: nowrap; } .tab-title div { @@ -517,6 +518,16 @@ jQuery(document).ready( function() { margin-left: 20px; } +.type-name { + overflow: hidden; + max-height: 80px; + max-width: 190px; + vertical-align: middle; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; +} + .toggle-img-option { cursor: pointer; position: absolute; diff --git a/include/ws_functions/pwg.php b/include/ws_functions/pwg.php index 77d54865a..59e8dedce 100644 --- a/include/ws_functions/pwg.php +++ b/include/ws_functions/pwg.php @@ -745,7 +745,7 @@ SELECT rules if (isset($row['category_id'])) { - $category_ids[$row['category_id']] = 1; + array_push($category_ids, $row['category_id'] ); } if (isset($row['image_id'])) @@ -784,7 +784,7 @@ SELECT '.$conf['user_fields']['id'].' AS id $query = ' SELECT id, uppercats FROM '.CATEGORIES_TABLE.' - WHERE id IN ('.implode(',', array_keys($category_ids)).') + WHERE id IN ('.implode(',', array_values($category_ids)).') ;'; $uppercats_of = query2array($query, 'id', 'uppercats'); @@ -938,12 +938,6 @@ SELECT $image_string = ''.$image_title.''; - - $cat_name = isset($line['category_id']) - ? ( isset($name_of_category[$line['category_id']]) - ? $name_of_category[$line['category_id']] - : 'deleted'.$line['category_id'] ) - : 'root'; } array_push( $result, @@ -960,7 +954,7 @@ SELECT 'EDIT_IMAGE'=> $image_edit_string, 'TYPE' => $line['image_type'], 'SECTION' => $line['section'], - 'CATEGORY' => $cat_name, + 'CATEGORY' => isset($name_of_category[$line['category_id']]) ? $name_of_category[$line['category_id']] : 'Root'.$line['category_id'], 'TAGS' => explode(",",$tag_names), 'TAGIDS' => explode(",",$tag_ids), )