Skip to content

Commit

Permalink
Fix to avoid to die page when there is a redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 12, 2019
1 parent 4d38e5c commit 18e4d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/website.lib.php
Expand Up @@ -342,9 +342,9 @@ function redirectToContainer($containerref, $containeraliasalt = '', $containeri
if (defined('USEDOLIBARREDITOR'))
{
print '<div class="margintoponly marginleftonly">';
print "This page contains dynamic code that make a redirect to '".$containerref."' in your current context. There is no preview for this page.";
print "This page contains dynamic code that make a redirect to '".$containerref."' in your current context. Redirect has been canceled as it is not supported in edition mode.";
print '</div>';
exit;
return;
}

if (defined('USEDOLIBARRSERVER')) // When page called from Dolibarr server
Expand Down

0 comments on commit 18e4d1b

Please sign in to comment.