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).

CommentFileSizeAuthor
#1 ereg_is_deprecated-1362744-1.patch8.85 KBspotzero

Comments

spotzero’s picture

Status: Active » Needs review
StatusFileSize
new8.85 KB

Here's a patch that replaces the ereg with something equivalent.

carusen’s picture

Is there a chance to include this patch in a future release of the module?

dubois’s picture

Replace ereg() with preg_match() Be wary of the delimiters.

devin carlson’s picture

Status: Needs review » Closed (won't fix)

The 7.x-2.x branch of Mobile Tools in now unsupported.

mrP’s picture

for any (still) stuck on 2.x at the moment, the patch in #1 at least clears the errors.