fix PHP 4 compatibility errors

This commit is contained in:
John Bintz 2009-11-12 19:12:30 -05:00
parent 3afd1646ad
commit 7cc91aa787
2 changed files with 6 additions and 4 deletions

View File

@ -546,7 +546,8 @@ class ComicPressStoryline {
function build_from_restrictions($restrictions = null) { function build_from_restrictions($restrictions = null) {
global $post; global $post;
$this->read_from_options()->exclude_all(); $this->read_from_options();
$this->exclude_all();
$include_all = true; $include_all = true;
if (is_array($restrictions)) { if (is_array($restrictions)) {
@ -599,4 +600,4 @@ class ComicPressStoryline {
} }
} }
?> ?>

View File

@ -39,7 +39,8 @@ function F($name, $path, $override_post = null) {
$comic_post = new ComicPressComicPost(is_null($override_post) ? $post : $override_post); $comic_post = new ComicPressComicPost(is_null($override_post) ? $post : $override_post);
return ComicPress::get_instance()->find_file($name, $path, $comic_post->find_parents()); $comicpress = ComicPress::get_instance();
return $comicpress->find_file($name, $path, $comic_post->find_parents());
} }
/** /**
@ -196,4 +197,4 @@ function comicpress_list_storyline_categories($args = "") {
} }
ob_start(); ob_start();
?> ?>