fix bug
This commit is contained in:
parent
5fb1c4ff4d
commit
bc53907ac3
@ -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;
|
||||
|
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user