Merge pull request #7487 from MrPetovan/task/7473-trending-tags
Fix trending tags variable name mistakes in Model\Term
This commit is contained in:
commit
48b1e172b9
|
@ -82,7 +82,7 @@ class Term
|
||||||
$limit
|
$limit
|
||||||
);
|
);
|
||||||
|
|
||||||
if (DBA::isResult($tags)) {
|
if (DBA::isResult($tagsStmt)) {
|
||||||
$tags = DBA::toArray($tagsStmt);
|
$tags = DBA::toArray($tagsStmt);
|
||||||
Cache::set('global_trending_tags', $tags, Cache::HOUR);
|
Cache::set('global_trending_tags', $tags, Cache::HOUR);
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ class Term
|
||||||
$limit
|
$limit
|
||||||
);
|
);
|
||||||
|
|
||||||
if (DBA::isResult($tags)) {
|
if (DBA::isResult($tagsStmt)) {
|
||||||
$tags = DBA::toArray($tagsStmt);
|
$tags = DBA::toArray($tagsStmt);
|
||||||
Cache::set('local_trending_tags', $tags, Cache::HOUR);
|
Cache::set('local_trending_tags', $tags, Cache::HOUR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<h3>{{$title}}</h3>
|
<h3>{{$title}}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{section name=ol loop=$tags max=10}}
|
{{section name=ol loop=$tags max=10}}
|
||||||
<li><a href="search?tag={{$tags[ol].term}}">{{$tags[ol].term}}</a></li>
|
<li><a href="search?tag={{$tags[ol].term}}">#{{$tags[ol].term}}</a></li>
|
||||||
{{/section}}
|
{{/section}}
|
||||||
</ul>
|
</ul>
|
||||||
{{if $tags|count > 10}}
|
{{if $tags|count > 10}}
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
<summary>{{$more}}</summary>
|
<summary>{{$more}}</summary>
|
||||||
<ul>
|
<ul>
|
||||||
{{section name=ul loop=$tags start=10}}
|
{{section name=ul loop=$tags start=10}}
|
||||||
<li><a href="search?tag={{$tags[ul].term}}">{{$tags[ul].term}}</a></li>
|
<li><a href="search?tag={{$tags[ul].term}}">#{{$tags[ul].term}}</a></li>
|
||||||
{{/section}}
|
{{/section}}
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in a new issue