fix bug
This commit is contained in:
parent
5fb1c4ff4d
commit
bc53907ac3
@ -317,7 +317,7 @@ class ComicPress {
|
|||||||
*/
|
*/
|
||||||
function get_partial_path($partials) {
|
function get_partial_path($partials) {
|
||||||
foreach ($partials as $partial) {
|
foreach ($partials as $partial) {
|
||||||
foreach ($comicpress->partial_paths as $path) {
|
foreach ($this->partial_paths as $path) {
|
||||||
$target = $path . '/' . $partial . '.inc';
|
$target = $path . '/' . $partial . '.inc';
|
||||||
if (file_exists($target)) {
|
if (file_exists($target)) {
|
||||||
return $target;
|
return $target;
|
||||||
|
@ -80,7 +80,7 @@ function include_partial($partials = '') {
|
|||||||
if (!is_array($partials)) {
|
if (!is_array($partials)) {
|
||||||
$partials = func_get_args();
|
$partials = func_get_args();
|
||||||
}
|
}
|
||||||
|
|
||||||
$target = $comicpress->get_partial_path($partials);
|
$target = $comicpress->get_partial_path($partials);
|
||||||
|
|
||||||
if ($target !== false) { include($target); }
|
if ($target !== false) { include($target); }
|
||||||
|
Loading…
Reference in New Issue
Block a user