aboutsummaryrefslogtreecommitdiff
path: root/app/class/model.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/model.php')
-rw-r--r--app/class/model.php7
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;
}