ソースを参照

Fix tag in user query (#3168)

* Fix tag in user query

#fix https://github.com/FreshRSS/FreshRSS/issues/3163

* Fix Travis
Alexandre Alapetite 5 年 前
コミット
6fac0e40c4
3 ファイル変更5 行追加1 行削除
  1. 1 1
      app/Models/UserQuery.php
  2. 2 0
      p/themes/Ansum/_layout.scss
  3. 2 0
      p/themes/Mapco/_layout.scss

+ 1 - 1
app/Models/UserQuery.php

@@ -153,7 +153,7 @@ class FreshRSS_UserQuery {
 		if ($this->tag_dao == null) {
 			throw new FreshRSS_DAO_Exception('Tag DAO is not loaded in UserQuery');
 		}
-		$category = $this->category_dao->searchById($id);
+		$tag = $this->tag_dao->searchById($id);
 		if ($tag) {
 			$this->get_name = $tag->name();
 		} else {

+ 2 - 0
p/themes/Ansum/_layout.scss

@@ -38,6 +38,7 @@
 		&.search {
 			// text-align: center;
 			// width: 50%;
+
 			input {
 				width: 230px;
 				color: $sid-font-color;
@@ -100,6 +101,7 @@
 				// border-left-width: 0;
 
 				// width: 3rem;
+
 				&:hover {
 					// background-color: $main-first-alt;
 				}

+ 2 - 0
p/themes/Mapco/_layout.scss

@@ -38,6 +38,7 @@
 		&.search {
 			// text-align: center;
 			// width: 50%;
+
 			input {
 				width: 230px;
 				color: $sid-font-color;
@@ -100,6 +101,7 @@
 				// border-left-width: 0;
 
 				// width: 3rem;
+
 				&:hover {
 					// background-color: $main-first-alt;
 				}