preferences.php 1.0KB

12345678910111213141516171819202122
  1. <?php
  2. /****************************************************************************/
  3. /* */
  4. /* YOU MAY WISH TO MODIFY OR REMOVE THE FOLLOWING LINES WHICH SET DEFAULTS */
  5. /* */
  6. /****************************************************************************/
  7. // Sets the default charset so that setCharset() is not needed elsewhere
  8. Swift_Preferences::getInstance()->setCharset('utf-8');
  9. // Without these lines the default caching mechanism is "array" but this uses a lot of memory.
  10. // If possible, use a disk cache to enable attaching large attachments etc.
  11. // You can override the default temporary directory by setting the TMPDIR environment variable.
  12. if (function_exists('sys_get_temp_dir') && is_writable(sys_get_temp_dir())) {
  13. Swift_Preferences::getInstance()
  14. -> setTempDir(sys_get_temp_dir())
  15. -> setCacheType('disk');
  16. }
  17. Swift_Preferences::getInstance()->setQPDotEscape(false);