bugfixes and typo after testing news and forum via RSS-feed
This commit is contained in:
+2
-1
@@ -59,12 +59,13 @@
|
||||
* requires $opt['forum']['count'] in settings for number of lastest forum-posts
|
||||
* requires $opt['forum']['url'] in settings: RSS-feed-URL of the forum
|
||||
*/
|
||||
$tpl->assign('phpbb_enabled', $opt['forum']['count'] > 0);
|
||||
$forumcontent = RSSParser::parse($opt['forum']['count'],$opt['forum']['url']);
|
||||
$tpl->assign('forum',$forumcontent);
|
||||
|
||||
$phpbb_topics = array();
|
||||
$tpl->assign('phpbb_topics', $phpbb_topics);
|
||||
$tpl->assign('phpbb_enabled', ($opt['cron']['phpbbtopics']['url'] != ''));
|
||||
// $tpl->assign('phpbb_enabled', ($opt['cron']['phpbbtopics']['url'] != ''));
|
||||
$tpl->assign('phpbb_name', $opt['cron']['phpbbtopics']['name']);
|
||||
$tpl->assign('phpbb_link', $opt['cron']['phpbbtopics']['link']);
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ function __autoload($class_name)
|
||||
$class_name = str_replace('_', '/', $class_name);
|
||||
|
||||
$file = $opt['rootpath'] . '../lib/classes/' . $class_name . '.php';
|
||||
$file2 = $opt['rootpath'] . 'lib2/class.' . $class_name2 . '.php';
|
||||
$file2 = $opt['rootpath'] . 'lib2/' . $class_name2 . '.class.php';
|
||||
if (file_exists($file)) {
|
||||
require_once($file);
|
||||
} elseif(file_exists($file2)) {
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<div class="buffer" style="width: 500px;"> </div>
|
||||
</div>
|
||||
*}
|
||||
{forum}
|
||||
{$forum}
|
||||
{*
|
||||
<ul class="nodot">
|
||||
{foreach from=$phpbb_topics item=phpbbItem}
|
||||
|
||||
Reference in New Issue
Block a user