mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +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) {
|
if ($static != null) {
|
||||||
$stringLen = strlen($static);
|
$stringLen = strlen($static);
|
||||||
return array_filter($_draftSubpage, function ($sub_page) use ($static, $stringLen) {
|
return array_filter($_draftSubpage, function ($sub_page) use ($static, $stringLen) {
|
||||||
$x = str_replace('content/static/', '', $sub_page['dirname']);
|
$x = explode('/', $sub_page['dirname']);
|
||||||
$y = explode('.', $x);
|
$y = explode('.', $x[2]);
|
||||||
if (isset($y[1])) {
|
if (isset($y[1])) {
|
||||||
$z = $y[1];
|
$z = $y[1];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue