Patch 1.8.29

This commit is contained in:
Kijin Sung 2017-01-12 20:21:57 +09:00
parent 67f56845d1
commit fe5a4221ea
2 changed files with 9 additions and 2 deletions

View file

@ -3,7 +3,7 @@
/**
* RX_VERSION is the version number of the Rhymix CMS.
*/
define('RX_VERSION', '1.8.28');
define('RX_VERSION', '1.8.29');
/**
* RX_MICROTIME is the startup time of the current script, in microseconds since the Unix epoch.

View file

@ -1981,7 +1981,14 @@ class menuAdminController extends menu
$name_arr_str = '';
foreach($names as $key => $val)
{
$name_arr_str .= sprintf('"%s"=>"%s",', $key, str_replace(array('\\','"'), array('\\\\','"'), strip_tags($val)));
if(preg_match('/^\{\$lang->menu_gnb(?:_sub)?\[\'([a-z0-9_]+)\'\]\}$/i', $val))
{
$name_arr_str .= sprintf('"%s"=>"%s",', $key, $val);
}
else
{
$name_arr_str .= sprintf('"%s"=>\'%s\',', $key, str_replace(array('\\','\''), array('\\\\','\\\''), strip_tags($val)));
}
}
$name_str = sprintf('$_menu_names[%d] = array(%s); %s', $node->menu_item_srl, $name_arr_str, $child_output['name']);