aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-10-14 03:12:44 +0200
committerIgor Wiedler <igor@wiedler.ch>2011-10-14 03:12:44 +0200
commit7fa14e654ad8880613897b45f5effb287d3bfd2d (patch)
tree5d5369b543ca61053f7c690e88d3fcb7747c5f4e /phpBB/develop
parent4e69fe68590cca0db66cc90af12e74c58bac10be (diff)
downloadforums-7fa14e654ad8880613897b45f5effb287d3bfd2d.tar
forums-7fa14e654ad8880613897b45f5effb287d3bfd2d.tar.gz
forums-7fa14e654ad8880613897b45f5effb287d3bfd2d.tar.bz2
forums-7fa14e654ad8880613897b45f5effb287d3bfd2d.tar.xz
forums-7fa14e654ad8880613897b45f5effb287d3bfd2d.zip
[ticket/10413] Make create_schema_files usable
PHPBB3-10413
Diffstat (limited to 'phpBB/develop')
-rw-r--r--phpBB/develop/create_schema_files.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php
index efe8837b26..9649997412 100644
--- a/phpBB/develop/create_schema_files.php
+++ b/phpBB/develop/create_schema_files.php
@@ -12,11 +12,7 @@
* If you overwrite the original schema files please make sure you save the file with UNIX linefeeds.
*/
-die("Please read the first lines of this script for instructions on how to enable it");
-
-@set_time_limit(0);
-
-$schema_path = './../install/schemas/';
+$schema_path = dirname(__FILE__).'/../install/schemas/';
if (!is_writable($schema_path))
{
@@ -242,7 +238,7 @@ $supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', '
foreach ($supported_dbms as $dbms)
{
- $fp = fopen($schema_path . '_' . $dbms . '_schema.sql', 'wt');
+ $fp = fopen($schema_path . '' . $dbms . '_schema.sql', 'wt');
$line = '';