2012-06-18 71 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