mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Fix Comment menu caption.
This commit is contained in:
@@ -19,6 +19,21 @@ if (!defined('e107_INIT'))
|
|||||||
exit;
|
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");
|
require_once (e_PLUGIN."comment_menu/comment_menu_shortcodes.php");
|
||||||
|
|
||||||
$cobj = e107::getObject('comment');
|
$cobj = e107::getObject('comment');
|
||||||
@@ -37,6 +52,8 @@ else
|
|||||||
}
|
}
|
||||||
global $menu_pref;
|
global $menu_pref;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$data = $cobj->getCommentData(intval($menu_pref['comment_display']));
|
$data = $cobj->getCommentData(intval($menu_pref['comment_display']));
|
||||||
|
|
||||||
$text = '';
|
$text = '';
|
||||||
@@ -79,6 +96,10 @@ if(!empty($title[e_LANGUAGE]))
|
|||||||
{
|
{
|
||||||
$title = $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))
|
if(empty($title))
|
||||||
{
|
{
|
||||||
|
@@ -41,8 +41,8 @@ if (isset($_POST['update_menu']))
|
|||||||
{
|
{
|
||||||
if($key == "comment_caption")
|
if($key == "comment_caption")
|
||||||
{
|
{
|
||||||
$temp['comment_caption'][e_LANGUAGE] = $tp->toDB($value);
|
// $temp['comment_caption'][e_LANGUAGE] = $tp->toDB($value);
|
||||||
continue;
|
// continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user