aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2019-04-26 20:32:48 +0200
committerThomas Lange <code@nerdmind.de>2019-04-26 21:02:13 +0200
commit33794b12d5c68df918b988497a396b86acb09feb (patch)
tree810476a1fe4265f5163d0d1ceb6a49f5a668aa33 /core/namespace
parent0c918cafbef2e6c402e6852e821397114ea62284 (diff)
downloadblog-33794b12d5c68df918b988497a396b86acb09feb.tar.gz
blog-33794b12d5c68df918b988497a396b86acb09feb.tar.xz
blog-33794b12d5c68df918b988497a396b86acb09feb.zip
Rename "template" directory to "theme"
This commit renames the "template" directory to "theme" because "theme" is the more correct term here.
Diffstat (limited to 'core/namespace')
-rw-r--r--core/namespace/Application.php4
-rw-r--r--core/namespace/Template/Factory.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php
index 8c3be12..a45e1e8 100644
--- a/core/namespace/Application.php
+++ b/core/namespace/Application.php
@@ -59,7 +59,7 @@ class Application {
$Language = new Language(self::get('CORE.LANGUAGE'));
$Language->load(sprintf(ROOT.'core/language/%s.php', Application::get('CORE.LANGUAGE')));
- $Language->load(sprintf(ROOT.'template/%s/lang/%s.php', $template_name, $template_lang));
+ $Language->load(sprintf(ROOT.'theme/%s/lang/%s.php', $template_name, $template_lang));
self::$Language = $Language;
}
@@ -136,7 +136,7 @@ class Application {
#===============================================================================
public static function getTemplateURL($more = ''): string {
$template = self::get('TEMPLATE.NAME');
- return self::getURL("template/{$template}/{$more}");
+ return self::getURL("theme/{$template}/{$more}");
}
#===============================================================================
diff --git a/core/namespace/Template/Factory.php b/core/namespace/Template/Factory.php
index a90c61e..3b40998 100644
--- a/core/namespace/Template/Factory.php
+++ b/core/namespace/Template/Factory.php
@@ -3,7 +3,7 @@ namespace Template;
class Factory extends \Factory implements \FactoryInterface {
public static function build($template): Template {
- $Template = new Template(ROOT.'template/'.\Application::get('TEMPLATE.NAME')."/html/{$template}.php");
+ $Template = new Template(ROOT.'theme/'.\Application::get('TEMPLATE.NAME')."/html/{$template}.php");
$Template->set('Language', \Application::getLanguage());
$Template->set('BLOGMETA', [
'NAME' => \Application::get('BLOGMETA.NAME'),