Skip to content

Commit

Permalink
Shouldn't make assumptions about partials being used for links
Browse files Browse the repository at this point in the history
  • Loading branch information
kolber committed Sep 10, 2009
1 parent 211038c commit a290b3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/stacey.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function check_expired() {
elseif(filemtime('../templates/partials/images.html') > filemtime($this->cachefile)) return true;
elseif(filemtime('../templates/partials/projects.html') > filemtime($this->cachefile)) return true;
elseif(filemtime('../templates/partials/navigation.html') > filemtime($this->cachefile)) return true;
elseif(filemtime('../templates/partials/previous-project-link.html') > filemtime($this->cachefile)) return true;
elseif(filemtime('../templates/partials/next-project-link.html') > filemtime($this->cachefile)) return true;
elseif(filemtime('../templates/partials/previous-project.html') > filemtime($this->cachefile)) return true;
elseif(filemtime('../templates/partials/next-project.html') > filemtime($this->cachefile)) return true;
elseif($this->create_hash() !== $this->get_current_hash()) return true;
else return false;
}
Expand Down Expand Up @@ -551,7 +551,7 @@ function render($page) {

class NextProjectPartial extends Partial {
var $page;
var $partial_file = "../templates/partials/next-project-link.html";
var $partial_file = "../templates/partials/next-project.html";

function render($project_sibling) {
$html = preg_replace(array_keys($project_sibling), array_values($project_sibling), file_get_contents($this->partial_file));
Expand All @@ -560,7 +560,7 @@ function render($project_sibling) {
}

class PreviousProjectPartial extends NextProjectPartial {
var $partial_file = "../templates/partials/previous-project-link.html";
var $partial_file = "../templates/partials/previous-project.html";
}

?>
File renamed without changes.
File renamed without changes.

0 comments on commit a290b3f

Please sign in to comment.