Skip to content

Commit

Permalink
Fixed error with undefined constant FORUM_DATABASE_QUERY_MAXIMUM_LENG…
Browse files Browse the repository at this point in the history
…TH in db_update.php.
  • Loading branch information
VyacheslavKasyanov authored and VyacheslavKasyanov committed Jun 15, 2015
1 parent 65e5c62 commit 0dbbaee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions admin/db_update.php
Expand Up @@ -26,6 +26,8 @@

define('FORUM_ROOT', '../');

require FORUM_ROOT.'include/constants.php';

// Attempt to load the configuration file config.php
if (file_exists(FORUM_ROOT.'config.php'))
include FORUM_ROOT.'config.php';
Expand All @@ -42,12 +44,6 @@
if (!defined('FORUM_DEBUG'))
define('FORUM_DEBUG', 1);

// Define avatars type
define('FORUM_AVATAR_NONE', 0);
define('FORUM_AVATAR_GIF', 1);
define('FORUM_AVATAR_JPG', 2);
define('FORUM_AVATAR_PNG', 3);

// Turn on full PHP error reporting
error_reporting(E_ALL);

Expand Down

0 comments on commit 0dbbaee

Please sign in to comment.