vsgallery/lib/helpers.class.php
2022-01-08 17:22:16 +01:00

16 lines
No EOL
216 B
PHP

<?php
class Helpers {
// Add trailing / to path if missing
public static function end_dir($dir) {
if (mb_substr($dir, -1) == '/' ) {
return $dir;
} else {
return $dir.'/';
}
}
}
?>