diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-12-03 22:25:32 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-12-03 22:25:32 -0500 |
commit | 0c0befe2f858ec2c53e92ab06455392c6bb118f0 (patch) | |
tree | 61f8da25d7a7cc5ee2ef3ea908b7486ef734b219 /phpBB/includes/functions_admin.php | |
parent | 3176dcbc05383ab7cb72e228ab7b2ea1929643ab (diff) | |
parent | bf6d501ab16f0557c0570faa2a6f45e588ff62fb (diff) | |
download | forums-0c0befe2f858ec2c53e92ab06455392c6bb118f0.tar forums-0c0befe2f858ec2c53e92ab06455392c6bb118f0.tar.gz forums-0c0befe2f858ec2c53e92ab06455392c6bb118f0.tar.bz2 forums-0c0befe2f858ec2c53e92ab06455392c6bb118f0.tar.xz forums-0c0befe2f858ec2c53e92ab06455392c6bb118f0.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[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 82fe97bd6d..f6378e331e 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2295,41 +2295,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 */ |