diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-14 10:04:58 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-14 10:04:58 +0100 |
commit | b4c5790ef82a4cc248d40c8403e795089d06ab08 (patch) | |
tree | 8c5f1bb28b2b2a158c230dd3ce3a50c795b0bf11 /app/class/model.php | |
parent | e1eb55024b67793e62e93696cffbd22ead855729 (diff) | |
download | wcms-b4c5790ef82a4cc248d40c8403e795089d06ab08.tar.gz wcms-b4c5790ef82a4cc248d40c8403e795089d06ab08.zip |
article-render
Diffstat (limited to 'app/class/model.php')
-rw-r--r-- | app/class/model.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/class/model.php b/app/class/model.php index 6d8aec3..b6e2ee6 100644 --- a/app/class/model.php +++ b/app/class/model.php @@ -1,5 +1,5 @@ <?php -class Model +abstract class Model { const CONFIG_FILE = 'config.json'; @@ -32,13 +32,14 @@ class Model return DIRECTORY_SEPARATOR . $basepath . Model::CSS_DIR; } - public function fontpath() + public static function fontpath() { $basepath = ''; if(!empty(Config::basepath())) { $basepath = Config::basepath() . DIRECTORY_SEPARATOR ; } - return $basepath . Model::FONT_DIR; + $url = DIRECTORY_SEPARATOR . $basepath . Model::FONT_DIR; + return $url; } |