fix require=>require_once for User.php. Use getBodyTopHTML so that we get the error reporting
This commit is contained in:
parent
d0adaeaabe
commit
cc455e5d74
|
@ -25,7 +25,7 @@ if ( !canEdit('System') && !$selfEdit ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
require('includes/User.php');
|
require_once('includes/User.php');
|
||||||
|
|
||||||
if ( $_REQUEST['uid'] ) {
|
if ( $_REQUEST['uid'] ) {
|
||||||
if ( !($newUser = new ZM\User($_REQUEST['uid'])) ) {
|
if ( !($newUser = new ZM\User($_REQUEST['uid'])) ) {
|
||||||
|
@ -54,9 +54,9 @@ foreach ( dbFetchAll($sql) as $monitor ) {
|
||||||
$focusWindow = true;
|
$focusWindow = true;
|
||||||
|
|
||||||
xhtmlHeaders(__FILE__, translate('User').' - '.$newUser->Username());
|
xhtmlHeaders(__FILE__, translate('User').' - '.$newUser->Username());
|
||||||
|
echo getBodyTopHTML();
|
||||||
|
echo getNavBarHTML();
|
||||||
?>
|
?>
|
||||||
<body>
|
|
||||||
<?php echo getNavBarHTML() ?>
|
|
||||||
<div id="page">
|
<div id="page">
|
||||||
<div class="w-100">
|
<div class="w-100">
|
||||||
<div class="float-left pl-3 pt-1">
|
<div class="float-left pl-3 pt-1">
|
||||||
|
|
Loading…
Reference in New Issue