PARTNER

Senin, 15 November 2010

Function eregi() is deprecated - osCommerce

Solusi jika muncul pesan Function eregi() is deprecated - osCommerce

Ganti kode 

if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {
            $this->language = $this->catalog_languages[$key];

dengan

if (preg_match('/^(' . $value . ')(;q=[0-9]\\.[0-9])?$/i', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {
$this->language = $this->catalog_languages[$key];

selamat mencoba ..........
Share:

0 komentar:

Posting Komentar

Blog Archive

Blogger templates