浏览代码

fix googlemaphelper shadow for url strings

euromark 12 年之前
父节点
当前提交
8d89457db8
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      Console/Command/CodeShell.php
  2. 2 0
      View/Helper/GoogleMapV3Helper.php

+ 1 - 1
Console/Command/CodeShell.php

@@ -310,7 +310,7 @@ class CodeShell extends AppShell {
 			->description(__d('cake_console', "A shell to help automate code cleanup. \n" .
 				"Be sure to have a backup of your application before running these commands."))
 			->addSubcommand('group', array(
-				'help' => __d('cake_console', 'Run multiple upgrade commands.'),
+				'help' => __d('cake_console', 'Run multiple commands.'),
 				'parser' => $subcommandParser
 			))
 			->addSubcommand('dependencies', array(

+ 2 - 0
View/Helper/GoogleMapV3Helper.php

@@ -514,6 +514,8 @@ class GoogleMapV3Helper extends AppHelper {
 			$params['shadow'] = $options['shadow'];
 			if (is_int($params['shadow'])) {
 				$params['shadow'] = 'gIcons'.self::$MAP_COUNT.'['.$params['shadow'].']';
+			} else {
+				$params['shadow'] = json_encode($params['shadow']);
 			}
 		}
 		if (isset($options['shape'])) {