Permalink
Browse files

Don't rely on REQUEST_URI to run in CLI mode

  • Loading branch information...
1 parent 850d770 commit be1275563ce0e679472585087b2af40fdbb5cc58 @lingej committed Apr 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 share/pnp/application/views/kohana_error_page.php
@@ -3,7 +3,9 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<?php if(isset ( $_SERVER['REQUEST_URI'])):?>
<meta http-equiv="refresh" content="60; url=<?php echo $_SERVER['REQUEST_URI'] ?>">
+<?php endif ?>
<title><?php echo $error ?></title>
<?php echo html::stylesheet('media/css/common.css') ?>
<?php echo html::stylesheet('media/css/ui-'.Kohana::config('core.theme').'/jquery-ui.css') ?>

0 comments on commit be12755

Please sign in to comment.