mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Update functions.php
This commit is contained in:
parent
27da6f193b
commit
3d8b037169
1 changed files with 2 additions and 2 deletions
|
|
@ -131,8 +131,8 @@ function get_draft_subpages($static = null)
|
|||
if ($static != null) {
|
||||
$stringLen = strlen($static);
|
||||
return array_filter($_draftSubpage, function ($sub_page) use ($static, $stringLen) {
|
||||
$x = str_replace('content/static/', '', $sub_page['dirname']);
|
||||
$y = explode('.', $x);
|
||||
$x = explode('/', $sub_page['dirname']);
|
||||
$y = explode('.', $x[2]);
|
||||
if (isset($y[1])) {
|
||||
$z = $y[1];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue