mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
- more updates, mostly bugfixes to the bbcode parser
- changed current_user in sessions (please review) - give more flexibility to style authors in regard to the pagination elements - profile fields updates (included a sample constuct into viewtopic_body.html - have to be documented extensivly) - code optimizations (use of strpos, sizeof, loops not iterating functions on every call, memory savings...) - and last but not least --- hopefully not introduced more bugs than healthy (*cough*) git-svn-id: file:///svn/phpbb/trunk@4984 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1054,13 +1054,13 @@ if ($stage == 3)
|
||||
$dbms_schema = 'schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql';
|
||||
|
||||
// How should we treat this schema?
|
||||
$remove_remarks = $available_dbms[$dbms]['COMMENTS'];;
|
||||
$remove_remarks = $available_dbms[$dbms]['COMMENTS'];
|
||||
$delimiter = $available_dbms[$dbms]['DELIM'];
|
||||
|
||||
$sql_query = @fread(@fopen($dbms_schema, 'r'), @filesize($dbms_schema));
|
||||
$sql_query = preg_replace('#phpbb_#is', $table_prefix, $sql_query);
|
||||
|
||||
$sql_query = $remove_remarks($sql_query);
|
||||
$remove_remarks($sql_query);
|
||||
$sql_query = split_sql_file($sql_query, $delimiter);
|
||||
|
||||
foreach ($sql_query as $sql)
|
||||
@@ -1092,7 +1092,7 @@ if ($stage == 3)
|
||||
|
||||
$sql_query = preg_replace('#phpbb_#', $table_prefix, $sql_query);
|
||||
|
||||
$sql_query = remove_remarks($sql_query);
|
||||
remove_remarks($sql_query);
|
||||
$sql_query = split_sql_file($sql_query, ';');
|
||||
|
||||
foreach ($sql_query as $sql)
|
||||
|
Reference in New Issue
Block a user