Permalink
Browse files

Move constants

  • Loading branch information...
1 parent 7798724 commit 33e06b1a4f43c9216604e1cdb3548f47ddf9b3e2 @ashcs ashcs committed Jun 27, 2012
Showing with 4 additions and 7 deletions.
  1. +1 −3 admin/install.php
  2. +3 −0 include/constants.php
  3. +0 −4 include/search_functions.php
View
@@ -19,9 +19,7 @@
define('FORUM', 1);
define('FORUM_DEBUG', 1);
-define('FORUM_SEARCH_MIN_WORD', 3);
-define('FORUM_SEARCH_MAX_WORD', 20);
-define('FORUM_DATABASE_QUERY_MAXIMUM_LENGTH', 140000);
@stfx

stfx Jun 27, 2012

Contributor

why did you delete FORUM_DATABASE_QUERY_MAXIMUM_LENGTH again after it was just added in the previous commit?

EDIT: Sorry did not see that it is already defined in constants.php

+require FORUM_ROOT.'include/constants.php';
if (file_exists(FORUM_ROOT.'config.php'))
exit('The file \'config.php\' already exists which would mean that PunBB is already installed. You should go <a href="'.FORUM_ROOT.'index.php">here</a> instead.');
View
@@ -22,4 +22,7 @@
define('FORUM_USER_PUBLIC_EMAIL', 0);
define('FORUM_USER_PRIVATE_EMAIL', 2);
+define('FORUM_SEARCH_MIN_WORD', 3);
+define('FORUM_SEARCH_MAX_WORD', 20);
+
define('FORUM_PUN_EXTENSION_REPOSITORY_URL', 'http://punbb.informer.com/extensions/1.4');
@@ -7,10 +7,6 @@
* @package PunBB
*/
-if (!defined('FORUM_SEARCH_MIN_WORD'))
- define('FORUM_SEARCH_MIN_WORD', 3);
-if (!defined('FORUM_SEARCH_MAX_WORD'))
- define('FORUM_SEARCH_MAX_WORD', 20);
//
// Cache the results of a search and redirect the user to the results page

0 comments on commit 33e06b1

Please sign in to comment.