Skip to content

Commit

Permalink
Merge pull request #134 from Quy/1.5-next
Browse files Browse the repository at this point in the history
#1011: Fix no automatic redirection to install.php
  • Loading branch information
franzliedke committed Jan 29, 2015
2 parents c4c55b9 + c147d49 commit 35ec99e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/common.php
Expand Up @@ -38,6 +38,13 @@
if (defined('FORUM'))
define('PUN', FORUM);

// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
{
header('Location: install.php');
exit;
}

// Load the functions script
require PUN_ROOT.'include/functions.php';

Expand All @@ -53,13 +60,6 @@
// Reverse the effect of register_globals
forum_unregister_globals();

// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
{
header('Location: install.php');
exit;
}

// The addon manager is responsible for storing the hook listeners and communicating with the addons
$flux_addons = new flux_addon_manager();

Expand Down

0 comments on commit 35ec99e

Please sign in to comment.