Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switched to slightly older jQuery version to correct incompatibility …

…with jQuery Mobile. Also corrected erro behavior.
  • Loading branch information...
commit 7da6bdc8c63290693b3f11541f47bd43a3f83f2f 1 parent 6da236c
@nathan-osman authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 index.php
  2. +1 −1  views/template.inc
View
4 index.php
@@ -186,9 +186,11 @@ public function Go()
// Display the default template file with the error
$page_contents = '<h2>An Error Has Occurred</h2>';
$page_contents .= $e->getMessage();
- $page_contents .= "<p>If you are seeing this error instead of the page you were looking for, try visiting the <a href='$document_root'>home page</a>.</p>";
+ $page_contents .= "<p>If you are seeing this error instead of the page you were looking for, try visiting the <a href='/$document_root'>home page</a>.</p>";
global $config;
+ header("Status: 503 Server Error");
+
require 'views/template.inc';
}
else
View
2  views/template.inc
@@ -41,7 +41,7 @@ $page_id = 'page_' . uniqid();
<title><?php echo $page_title; ?></title>
<!-- Include the jQuery Mobile files -->
- <script type='text/javascript' src='http://code.jquery.com/jquery.min.js'></script>
+ <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript' src='http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js'></script>
<link rel='stylesheet' type='text/css' href='http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css' />
Please sign in to comment.
Something went wrong with that request. Please try again.