aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorPatrick Webster <noxwizard@phpbb.com>2011-09-28 01:52:08 -0500
committerPatrick Webster <noxwizard@phpbb.com>2011-09-28 01:52:08 -0500
commit26e84b12e817dd5e86a82c379a03a67f9f1bacd1 (patch)
treef08bd0fbd7c50f9f153c72bc6d0df1bf706ba8a1 /phpBB/includes/functions_admin.php
parent4bc11db0ffc3b387e4ad38b0d9ceccfa58f2738d (diff)
downloadforums-26e84b12e817dd5e86a82c379a03a67f9f1bacd1.tar
forums-26e84b12e817dd5e86a82c379a03a67f9f1bacd1.tar.gz
forums-26e84b12e817dd5e86a82c379a03a67f9f1bacd1.tar.bz2
forums-26e84b12e817dd5e86a82c379a03a67f9f1bacd1.tar.xz
forums-26e84b12e817dd5e86a82c379a03a67f9f1bacd1.zip
[ticket/10349] Use new schema comment function in installer
This is what now runs in the unit tests. The COMMENTS field in the dbms data is no longer needed, so it has been removed. PHPBB3-10349
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index f7e19f3e7d..0c83674054 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2294,41 +2294,6 @@ function auto_prune($forum_id, $prune_mode, $prune_flags, $prune_days, $prune_fr
}
/**
-* remove_comments will strip the sql comment lines out of an uploaded sql file
-* specifically for mssql and postgres type files in the install....
-*/
-function remove_comments(&$output)
-{
- $lines = explode("\n", $output);
- $output = '';
-
- // try to keep mem. use down
- $linecount = sizeof($lines);
-
- $in_comment = false;
- for ($i = 0; $i < $linecount; $i++)
- {
- if (trim($lines[$i]) == '/*')
- {
- $in_comment = true;
- }
-
- if (!$in_comment)
- {
- $output .= $lines[$i] . "\n";
- }
-
- if (trim($lines[$i]) == '*/')
- {
- $in_comment = false;
- }
- }
-
- unset($lines);
- return $output;
-}
-
-/**
* Cache moderators, called whenever permissions are changed via admin_permissions. Changes of username
* and group names must be carried through for the moderators table
*/