/class_smarty/plugins/modifier.urlencode.php

https://bitbucket.org/ladasoukup/sb_eventlogmonitor · PHP · 23 lines · 6 code · 4 blank · 13 comment · 0 complexity · 17daf18c85d6bcd697939108c8117a10 MD5 · raw file

  1. <?php
  2. /**
  3. * Smarty plugin
  4. */
  5. /**
  6. * Smarty urlencode modifier plugin
  7. *
  8. * Type: modifier<br>
  9. * Name: urlencode<br>
  10. * Purpose: do urlencode
  11. * @param string
  12. * @return string
  13. */
  14. function smarty_modifier_urlencode($string)
  15. {
  16. return urlencode($string);
  17. }
  18. /* vim: set expandtab: */
  19. ?>