Commit 4e1c5af0 authored by lphuberdeau's avatar lphuberdeau

[FIX] Typo in previous commit and using the correct pref name when checking...

[FIX] Typo in previous commit and using the correct pref name when checking for blog rss feed (just couldn't work)
parent 8438cfc6
......@@ -8,7 +8,7 @@ require_once ('tiki-setup.php');
require_once ('lib/tikilib.php');
require_once ('lib/blogs/bloglib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['rss_blog'] != 'y') {
if ($prefs['rss_blogs'] != 'y') {
$errmsg = tra("rss feed disabled");
require_once ('tiki-rss_error.php');
}
......
......@@ -34,7 +34,7 @@ if (!isset($_REQUEST["blogId"])) {
$smarty->display("error.tpl");
die;
}
$tikilib->get_object_perm( $_REQUEST["blogId"], 'blog' );
$tikilib->get_perm_object( $_REQUEST["blogId"], 'blog' );
if ($tiki_p_read_blog != 'y') {
$smarty->assign('errortype', 401);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment