Re: browser match for AvantGo and Danger hiptop
Ben Poliakoff <[email protected]> Tue, 3 Aug 2004 21:47:19 -0700
| Newsgroups | gmane.comp.horde.mimp |
|---|---|
| Message-ID | <[email protected]> |
* Chuck Hagenbuch <[email protected]> [040803 21:14]: > Quoting Ben Poliakoff <[email protected]>: > > >Neither of these are matched by the following snippet from Browser.php > >(since the UserAgent string appears to be "Mozilla/5.0" for the hiptop > >and "Mozilla/3.0" for the AvantGo browser): > > > > } elseif (strpos($this->_lowerAgent, 'avantgo') !== false) { > > $this->setBrower('avantgo'); > > $this->_mobile = true; > > } > > > >Is there a way that I can match against string elements within the > >parentheses? > > Eh? The check just needed to be moved up above the mozilla check, which I > just > did. Fair enough! I thought something fancier might be going on. Thanks for the clarification! Ben -- mimp mailing list - Join the hunt: http://horde.org/bounties/#mimp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]