The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Function eregi() is deprecated help
Hi guys,
I'm just testing out php5.6 on my site and my error logs are filling with "Function eregi() is deprecated" messages that relate to this GARS plugin, from what I've been reading the eregi needs to be replaced with a preg_match, but I just can't get it right. Code:
global $vbulletin; if (is_object($vbulletin->gars)) { $this->templatename = $vbulletin->gars->process_postbit(); if ($show['postcount_garstemp']) { $show['postcount'] = $show['postcount_garstemp']; $post['postcount'] = $post['gar_postcount']; } if (!eregi('gars', $this->templatename)) { $show['postcount_garstemp'] = $show['postcount']; if ($post['postcount'] - $post['gar_postcount'] == 2) { $show['postcount'] = 0; } } } I'm sure it will be a simple fix for one of you guys. Thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|