This commit is contained in:
John Bintz 2009-07-19 19:20:13 -04:00
parent 5fb1c4ff4d
commit bc53907ac3
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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); }