diff --git a/web/zm.php b/web/zm.php index 2e2a90fcb..d44a15caf 100644 --- a/web/zm.php +++ b/web/zm.php @@ -32,7 +32,7 @@ if ( !isset($PHP_SELF) ) $accepts_wml = preg_match( '/text\/vnd.wap.wml/i', $HTTP_SERVER_VARS[HTTP_ACCEPT] ); $accepts_html = preg_match( '/text\/html/i', $HTTP_SERVER_VARS[HTTP_ACCEPT] ); -if ( $accepts_wml && !$accepts_html ) +if ( isset($wml) || ($accepts_wml && !$accepts_html) ) { require_once( 'zmwml.php' ); }