Skip to content

Commit

Permalink
Move constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ashcs committed Jun 27, 2012
1 parent 7798724 commit 33e06b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions admin/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

This comment has been minimized.

Copy link
@DomGries

DomGries 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.');
Expand Down
3 changes: 3 additions & 0 deletions include/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
4 changes: 0 additions & 4 deletions include/search_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33e06b1

Please sign in to comment.