Andy Baugh преди 6 години
родител
ревизия
c0691fe14d
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      lib/tCMS/Config.inc
  2. 1 1
      sys/blogroll.inc

+ 1 - 0
lib/tCMS/Config.inc

@@ -27,6 +27,7 @@
                 'theme' => [ 'label' => 'tCMS Theme', 'default' => 'default', 'form_field' => 'select', 'select_opts' => [ 'default' ] ],
                 'htmltitle' => [ 'label' => 'Website Title', 'default' => 'Just another tCMS Blog', 'form_field' => 'input', 'field_type' => 'text' ],
                 'microblogtitle' => [ 'label' => 'Microblog Title', 'default' => 'Microblog', 'form_field' => 'input', 'field_type' => 'text' ],
+                'blogtitle' => [ 'label' => 'Blog Title', 'default' => 'Blog', 'form_field' => 'input', 'field_type' => 'text' ],
             ],
         ];
 

+ 1 - 1
sys/blogroll.inc

@@ -35,7 +35,7 @@ if (!empty($_GET['index']) && !is_int($_GET['index'])) {
 
 
 	//slurp up the files
-	$files = glob("blog/*.post");
+	$files = glob($basedir . "/blog/*.post");
 	$guid = count($files);
 
 	//sort by filename