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) {
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;

View File

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