[英]Drupal CSS Injector in PHP-mode produces error
I've got a series of styles to inject (for an iPad fix) on a Drupal 6 site. 我在Drupal 6网站上注入了一系列样式(用于iPad修复)。 I'm using the CSS Injector module in PHP-mode. 我在PHP模式下使用CSS Injector模块。 The code to determine whether the styles get displayed is as follows: 确定样式是否显示的代码如下:
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
return TRUE;
} else {
return FALSE;
}
?>
When I hit save, I get a Drupal error. 当我点击保存时,出现Drupal错误。 What am I doing wrong here? 我在这里做错了什么? Is there something wacky in my code that I'm not seeing? 我的代码中有没有古怪的东西?
还将错误报告发布到模块的问题队列中也不会造成伤害http://drupal.org/project/issues/css_injector?categories=All
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.