vsgallery/lib/helpers.class.php

16 lines
216 B
PHP
Raw Normal View History

2022-01-08 16:22:16 +00:00
<?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.'/';
}
}
}
?>