I've got a series of styles to inject (for an iPad fix) on a Drupal 6 site. I'm using the CSS Injector module in PHP-mode. 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. 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.