From a958ed7b7be9cf78c982946c9ec1f8cb2aa8983a Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Tue, 11 May 2004 12:12:11 +0000 Subject: [PATCH] Some minor glitches in the install process git-svn-id: file:///svn/phpbb/trunk@4884 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install.php | 7 ++++--- phpBB/install/schemas/mysql_schema.sql | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/phpBB/install/install.php b/phpBB/install/install.php index de84110bb8..a7f7691876 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -403,8 +403,9 @@ if ($stage == 0) foreach ($locations as $location) { - if (@file_exists($location . 'convert' . $exe) && @is_readable($location . 'convert' . $exe) && @filesize($location . 'convert' . $exe) > 80000) + if (@file_exists($location . 'convert' . $exe) && @is_readable($location . 'convert' . $exe) && @filesize($location . 'convert' . $exe) > 30000) { + print $location; $img_imagick = str_replace('\\', '/', $location); continue; } @@ -1002,7 +1003,7 @@ if ($stage == 2) - +
@@ -1467,4 +1468,4 @@ function connect_check_db($error_connect, &$error, &$dbms, &$table_prefix, &$dbh // FUNCTIONS // --------- -?> \ No newline at end of file +?> diff --git a/phpBB/install/schemas/mysql_schema.sql b/phpBB/install/schemas/mysql_schema.sql index 175df87886..7a9a264a8c 100644 --- a/phpBB/install/schemas/mysql_schema.sql +++ b/phpBB/install/schemas/mysql_schema.sql @@ -22,7 +22,7 @@ CREATE TABLE phpbb_attachments ( thumbnail tinyint(1) DEFAULT '0' NOT NULL, PRIMARY KEY (attach_id), KEY filetime (filetime), - KEY post_id (post_id), + KEY post_msg_id (post_msg_id), KEY topic_id (topic_id), KEY poster_id (poster_id), KEY physical_filename (physical_filename(10)),