2012-06-18 36 views
0

在Drupal中使用Zen子主题时,出现以下警告。我该如何解决它们?Zen Drupal子主题中的PHP警告消息

Warning: in_array() [function.in-array]: Wrong datatype for second argument in zen_preprocess_html() (line 111 of sites/all/themes/zen/template.php). 
Warning: in_array() [function.in-array]: Wrong datatype for second argument in zen_preprocess_html() (line 112 of sites/all/themes/zen/template.php). 
Warning: in_array() [function.in-array]: Wrong datatype for second argument in zen_preprocess_html() (line 113 of sites/all/themes/zen/template.php). 

回答

0

在子主题的.info文件,添加这些行:

settings[zen_html5_respond_meta][] = respond 
settings[zen_html5_respond_meta][] = html5 
settings[zen_html5_respond_meta][] = meta 

,我发现这个解决办法在http://drupal.org/node/1357538