1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-13 17:12:07 +02:00

Fix Comment menu caption.

This commit is contained in:
Cameron 2017-10-02 13:59:09 -07:00
parent 83aece2e4a
commit 6f42d26dd5
2 changed files with 23 additions and 2 deletions

View File

@ -19,6 +19,21 @@ if (!defined('e107_INIT'))
exit;
}
/**
* @todo upgrade prefs usage and use e_menu.php instead of config.php
*/
/*
if(is_string($parm))
{
parse_str($parm, $parms);
}
else
{
$parms = $parm;
}
*/
require_once (e_PLUGIN."comment_menu/comment_menu_shortcodes.php");
$cobj = e107::getObject('comment');
@ -37,6 +52,8 @@ else
}
global $menu_pref;
$data = $cobj->getCommentData(intval($menu_pref['comment_display']));
$text = '';
@ -79,6 +96,10 @@ if(!empty($title[e_LANGUAGE]))
{
$title = $title[e_LANGUAGE];
}
elseif(!empty($title[e_LANGUAGE][e_LANGUAGE])) // fix for saving bug.
{
$title = $title[e_LANGUAGE][e_LANGUAGE];
}
if(empty($title))
{

View File

@ -41,8 +41,8 @@ if (isset($_POST['update_menu']))
{
if($key == "comment_caption")
{
$temp['comment_caption'][e_LANGUAGE] = $tp->toDB($value);
continue;
// $temp['comment_caption'][e_LANGUAGE] = $tp->toDB($value);
// continue;
}