/packages/Output/Smarty/Plugins/modifier.rel.php
https://bitbucket.org/alexamiryan/stingle · PHP · 12 lines · 4 code · 1 blank · 7 comment · 0 complexity · eeae8e453db7b68b085bd1cf21e32575 MD5 · raw file
- <?php
- /**
- * Get relative file path from site absolute link
- * For example output from img modifier
- *
- * @param string $filePath
- * @return string
- */
- function smarty_modifier_rel($filePath){
- return preg_replace("/^\//", "", $filePath);
- }