X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=surfbar.php;h=8ad2c2af012473fd73719298e06bc00aa866b8fb;hb=d51d90ea79446c288184b023a7d1d3adabe739c3;hp=cb718f47b8a5d525e133e53a5bde3c7c00313dce;hpb=f7d1229840cdae4ba22fdf375265bca4fb4a2d32;p=mailer.git diff --git a/surfbar.php b/surfbar.php index cb718f47b8..8ad2c2af01 100644 --- a/surfbar.php +++ b/surfbar.php @@ -163,6 +163,9 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in // Then load waiting page SURFBAR_RELOAD_TO_STOP_PAGE(); } // END - if + + // Load header to avoid a bug + loadIncludeOnce('inc/header.php'); } else { // Reload to stop frame! SURFBAR_RELOAD_TO_STOP_PAGE(); @@ -174,16 +177,11 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in // Prepare content $content = ''; - // Determine template name - $templateName = SURFBAR_DETERMINE_TEMPLATE_NAME(); - - // Load header in frameset mode is the default - $isFrameset = true; - // Frame "top" set? if ((isGetRequestParameterSet('frame')) && (getRequestParameter('frame') == 'top')) { // Determine next id $nextId = SURFBAR_DETERMINE_NEXT_ID(); + //* DEBUG: */ die('nextId='.$nextId); // Is there a valid id? if ($nextId > 0) { @@ -207,6 +205,9 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in // Load header loadIncludeOnce('inc/header.php'); + // Determine template name + $templateName = SURFBAR_DETERMINE_TEMPLATE_NAME(); + // Load that template //* DEBUG: */ die('templateName=' . $templateName . '
content=
' . print_r($content, true) . '
'); loadTemplate($templateName, false, $content);