diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-06-20 13:56:11 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-07-03 01:02:42 +0200 |
commit | 81d5327e4411a7044f1c90e002505cad309372d6 (patch) | |
tree | 49fd0c62a0c41424cae615300e8524673945fdef /phpBB/includes/functions_admin.php | |
parent | 155c93d71a84fc9e47287070260623bb1fb6168f (diff) | |
download | forums-81d5327e4411a7044f1c90e002505cad309372d6.tar forums-81d5327e4411a7044f1c90e002505cad309372d6.tar.gz forums-81d5327e4411a7044f1c90e002505cad309372d6.tar.bz2 forums-81d5327e4411a7044f1c90e002505cad309372d6.tar.xz forums-81d5327e4411a7044f1c90e002505cad309372d6.zip |
[ticket/10937] Comment removal functions: Restore backward compatibility
PHPBB3-10937
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 204fa9a43d..7352b3d1f3 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2294,6 +2294,21 @@ 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.... +* +* @deprecated Use phpbb_remove_comments() instead. +*/ +function remove_comments(&$output) +{ + // Remove /* */ comments (http://ostermiller.org/findcomment.html) + $output = preg_replace('#/\*(.|[\r\n])*?\*/#', "\n", $output); + + // Return by reference and value. + 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 */ |