Skip to content

Commit

Permalink
bugfixes and typo after testing news and forum via RSS-feed
Browse files Browse the repository at this point in the history
  • Loading branch information
bohrsty committed Oct 2, 2012
1 parent f6d0f92 commit 2755826
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion htdocs/index.php
Expand Up @@ -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']);

Expand Down
2 changes: 1 addition & 1 deletion htdocs/lib2/common.inc.php
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/templates2/ocstyle/start.tpl
Expand Up @@ -113,7 +113,7 @@
<div class="buffer" style="width: 500px;">&nbsp;</div>
</div>
*}
{forum}
{$forum}
{*
<ul class="nodot">
{foreach from=$phpbb_topics item=phpbbItem}
Expand Down

0 comments on commit 2755826

Please sign in to comment.