mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Update functions.php
This commit is contained in:
parent
ad7464cf22
commit
c7b88f69d0
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ function get_static_subpages($static = null)
|
|||
static $_sub_page = array();
|
||||
|
||||
if (empty($_sub_page)) {
|
||||
$url = 'cache/index/index-sub-pages.txt';
|
||||
$url = 'cache/index/index-subpages.txt';
|
||||
if (!file_exists($url)) {
|
||||
rebuilt_cache('all');
|
||||
}
|
||||
|
|
@ -238,7 +238,7 @@ function rebuilt_cache($type = null)
|
|||
}
|
||||
usort($subpage_cache, "sortfile_a");
|
||||
$subpage_string = serialize($subpage_cache);
|
||||
file_put_contents('cache/index/index-sub-pages.txt', print_r($subpage_string, true));
|
||||
file_put_contents('cache/index/index-subpages.txt', print_r($subpage_string, true));
|
||||
|
||||
// Rebuilt user profile index
|
||||
$atmp = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue