From: Andrew Dolgov Date: Thu, 12 Apr 2012 10:03:34 +0000 (+0400) Subject: register: include functions.php before checking for action parameter to set proper... X-Git-Tag: 1.5.11~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f9c0fc6eb74440c761b9b12dd1684a1c1e52213c;p=tt-rss.git register: include functions.php before checking for action parameter to set proper error_reporting (fixes #448) --- diff --git a/register.php b/register.php index 97cea47c..fbcea845 100644 --- a/register.php +++ b/register.php @@ -9,14 +9,14 @@ require_once 'lib/phpmailer/class.phpmailer.php'; - $action = $_REQUEST["action"]; - require_once "functions.php"; require_once "sessions.php"; require_once "sanity_check.php"; require_once "config.php"; require_once "db.php"; + $action = $_REQUEST["action"]; + $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); if (!init_connection($link)) return;