16 lines
216 B
PHP
16 lines
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.'/';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|