Skip to content

Commit

Permalink
Fix message_backstage function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Dec 28, 2014
1 parent 1c7e311 commit e50226b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1024,17 +1024,16 @@ function message($message, $no_back_link = false, $http_status = null) {
// Display a message in the Backstage
//
function message_backstage($message, $no_back_link = false, $http_status = null) {
global $db, $lang, $luna_config, $luna_start, $luna_user;
global $lang, $luna_config;

// Did we receive a custom header?
if(!is_null($http_status)) {
if(!is_null($http_status))
header('HTTP/1.1 ' . $http_status);
}

$page_title = array(luna_htmlspecialchars($luna_config['o_board_title']), $lang['Admin'], $lang['Info']);
define('FORUM_ACTIVE_PAGE', 'admin');
require 'header.php';
load_admin_nav('');
load_admin_nav('', '');

?>
<h2><?php echo $lang['Info'] ?></h2>
Expand All @@ -1045,11 +1044,11 @@ function message_backstage($message, $no_back_link = false, $http_status = null)
<div class="panel-body">
<p><?php echo $message ?></p>
</div>
<div class="panel-footer">
<?php if (!$no_back_link): ?>
<?php if (!$no_back_link): ?>
<div class="panel-footer">
<a href="javascript: history.go(-1)" href="btn btn-link"><?php echo $lang['Go back'] ?></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
<?php
require 'footer.php';
Expand Down

0 comments on commit e50226b

Please sign in to comment.