diff options
author | Varun Agrawal <Varun@VarunAgw.com> | 2014-03-06 23:51:49 +0530 |
---|---|---|
committer | Varun Agrawal <Varun@VarunAgw.com> | 2014-03-06 23:51:49 +0530 |
commit | 1cf8554d0efc00b19062a75e54e86c0926f251ff (patch) | |
tree | b10850ad0a093f9b0caf4e99ae8f6f4a3257e09d /phpBB/includes | |
parent | c40b15ae198452b47a09f9d1dec4d85ad2de75c8 (diff) | |
download | forums-1cf8554d0efc00b19062a75e54e86c0926f251ff.tar forums-1cf8554d0efc00b19062a75e54e86c0926f251ff.tar.gz forums-1cf8554d0efc00b19062a75e54e86c0926f251ff.tar.bz2 forums-1cf8554d0efc00b19062a75e54e86c0926f251ff.tar.xz forums-1cf8554d0efc00b19062a75e54e86c0926f251ff.zip |
[ticket/12250] Remove deprecated phpbb_clean_path function
The function phpbb_clean_path() in functions.php is deprecated as is not
used used 3.0/3.1 core
PHPBB3-12250
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index aca1443cce..03cd235f86 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -850,46 +850,6 @@ else } } -/** -* Eliminates useless . and .. components from specified path. -* -* Deprecated, use filesystem class instead -* -* @param string $path Path to clean -* @return string Cleaned path -* -* @deprecated -*/ -function phpbb_clean_path($path) -{ - global $phpbb_path_helper, $phpbb_container; - - if (!$phpbb_path_helper && $phpbb_container) - { - $phpbb_path_helper = $phpbb_container->get('path_helper'); - } - else if (!$phpbb_path_helper) - { - // The container is not yet loaded, use a new instance - if (!class_exists('\phpbb\path_helper')) - { - global $phpbb_root_path, $phpEx; - require($phpbb_root_path . 'phpbb/path_helper.' . $phpEx); - } - - $phpbb_path_helper = new phpbb\path_helper( - new phpbb\symfony_request( - new phpbb\request\request() - ), - new phpbb\filesystem(), - $phpbb_root_path, - $phpEx - ); - } - - return $phpbb_path_helper->clean_path($path); -} - // functions used for building option fields /** |