mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
Update functions.php
This commit is contained in:
parent
050fe31523
commit
07c49547f6
1 changed files with 2 additions and 1 deletions
|
|
@ -1754,7 +1754,8 @@ function popular_posts($custom = null, $count = null)
|
|||
$arr = explode('post_', $key);
|
||||
if (isset($arr[1])) {
|
||||
foreach($posts_list as $in => $f) {
|
||||
if (strpos($f['basename'], $arr[1] . '.md') !== false ) {
|
||||
$ex = explode('_', $f['basename']);
|
||||
if ($ex[2] == $arr[1] . '.md') {
|
||||
$tmp[] = $f;
|
||||
if ($i++ >= $count)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue