diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-12-03 22:07:34 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-12-03 22:07:34 -0500 |
commit | bf6d501ab16f0557c0570faa2a6f45e588ff62fb (patch) | |
tree | c23957f4de0b3db5976d1e4dac15c69ecfb317de /phpBB/includes/functions_admin.php | |
parent | 138f123bd81bdd25bde28ca46a9ebf1673ffaecd (diff) | |
parent | baac9e5d150dab88ed6f1eca8ca61bc4468ab01c (diff) | |
download | forums-bf6d501ab16f0557c0570faa2a6f45e588ff62fb.tar forums-bf6d501ab16f0557c0570faa2a6f45e588ff62fb.tar.gz forums-bf6d501ab16f0557c0570faa2a6f45e588ff62fb.tar.bz2 forums-bf6d501ab16f0557c0570faa2a6f45e588ff62fb.tar.xz forums-bf6d501ab16f0557c0570faa2a6f45e588ff62fb.zip |
Merge remote-tracking branch 'Noxwizard/ticket/10349' into develop-olympus
* Noxwizard/ticket/10349:
[ticket/10349] Removed duplicated functions from schema loading in tests
[ticket/10349] Update function comment
[ticket/10349] Use new schema comment function in installer
[ticket/10349] Unit tests: Consolidate schema comment removal functions
[ticket/10349] Unit tests: Remove comments while loading schema files
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 526bc16ff0..0e1a11b4aa 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 */ |