Each time a person accesses my website via a mobile browser, they get served the mobile version of the page they are viewing and I also get a long entry in Drupal, saying:
Deprecated function: Function ereg() is deprecated in _mobile_tools_is_mobile_device() (line 499 of /var/www/vhosts/.../httpdocs/modules/mobile_tools/mobile_tools.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ereg_is_deprecated-1362744-1.patch | 8.85 KB | spotzero |
Comments
Comment #1
spotzero commentedHere's a patch that replaces the ereg with something equivalent.
Comment #2
carusen commentedIs there a chance to include this patch in a future release of the module?
Comment #3
dubois commentedReplace ereg() with preg_match() Be wary of the delimiters.
Comment #4
devin carlson commentedThe 7.x-2.x branch of Mobile Tools in now unsupported.
Comment #5
mrP commentedfor any (still) stuck on 2.x at the moment, the patch in #1 at least clears the errors.