Skip to content

Commit

Permalink
Small bug fix to Links.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodesocket committed Aug 10, 2012
1 parent e299d25 commit 4e1aceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Links.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public static function render($page, array $query_params = array()) {
// There may be a better way to do this. Do you know?
////
if(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])) {
if(strpos($_SERVER['HTTP_REFERER'], ".php") === false) {
Links::$pretty = true;
if(strpos($_SERVER['HTTP_REFERER'], ".php") === true) {
Links::$pretty = false;
}
}

Expand Down

0 comments on commit 4e1aceb

Please sign in to comment.