diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-05 21:01:58 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-05 21:01:58 +0200 |
commit | 6ef498b49946ba74d610b3805fb908b163a7f03a (patch) | |
tree | 7c0239269a92a6887f43cc36020258616bfec434 /user_guide_src/source/general | |
parent | f4a53ce71feadb867b3ea462cb5a5b3f5052a035 (diff) |
Added get_mimes() function to system/core/Commons.php.The MIMEs array from config/mimes.php is used by multiple core classes, libraries and helpers and each of them has implemented an own way of getting it, which is not needed and is hard to maintain. This also fixes issue #1411
Diffstat (limited to 'user_guide_src/source/general')
-rw-r--r-- | user_guide_src/source/general/common_functions.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/user_guide_src/source/general/common_functions.rst b/user_guide_src/source/general/common_functions.rst index 70563b8d2..99126f900 100644 --- a/user_guide_src/source/general/common_functions.rst +++ b/user_guide_src/source/general/common_functions.rst @@ -79,3 +79,8 @@ html_escape($mixed) This function provides short cut for htmlspecialchars() function. It accepts string and array. To prevent Cross Site Scripting (XSS), it is very useful. + +get_mimes() +============= + +This function returns the MIMEs array from config/mimes.php.
\ No newline at end of file |