mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
21 lines
368 B
PHP
Executable File
21 lines
368 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* Fetches the name of the current module folder name.
|
|
*
|
|
* @return string
|
|
**/
|
|
function blog_dir() {
|
|
return trim(str_replace(BASE_PATH, "", dirname(__FILE__)), DIRECTORY_SEPARATOR);
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Returns the absolute path of the current module path
|
|
*
|
|
* @return string
|
|
**/
|
|
function blog_path() {
|
|
return BASE_PATH . '/' . blog_dir();
|
|
} |