Skip to content

Commit

Permalink
Added a check for a custom_offline.php page to allow for a custom err…
Browse files Browse the repository at this point in the history
…or page .
  • Loading branch information
alanhartless committed Mar 13, 2015
1 parent 665263b commit 4963544
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion offline.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
}
}
$assetBase = $assetPrefix . $base . $paths['assets'];

// Allow a custom error page
if (file_exists(__DIR__ . '/custom_offline.php')) {
include __DIR__ . '/custom_offline.php';
exit;
}

?>
<!DOCTYPE html>
<html lang="en">
Expand All @@ -23,7 +30,7 @@
<meta name="description" content="">
<meta name="author" content="">

<title><?php echo $_SERVER['HTTP_HOST']; ?></title>
<title>Site is offline</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" type="image/x-icon" href="<?php echo $assetBase . '/images/favicon.ico'; ?>" />
Expand Down

0 comments on commit 4963544

Please sign in to comment.