diff --git a/classes/ComicPress.inc b/classes/ComicPress.inc index 985110c..3b44772 100644 --- a/classes/ComicPress.inc +++ b/classes/ComicPress.inc @@ -317,7 +317,7 @@ class ComicPress { */ function get_partial_path($partials) { foreach ($partials as $partial) { - foreach ($comicpress->partial_paths as $path) { + foreach ($this->partial_paths as $path) { $target = $path . '/' . $partial . '.inc'; if (file_exists($target)) { return $target; diff --git a/functions.php b/functions.php index cca9285..0a43b62 100644 --- a/functions.php +++ b/functions.php @@ -80,7 +80,7 @@ function include_partial($partials = '') { if (!is_array($partials)) { $partials = func_get_args(); } - + $target = $comicpress->get_partial_path($partials); if ($target !== false) { include($target); }