TeraWurflDatabase_MySQL5.php on line 359

dryabov
13 years, 5 months ago
Looks like correct code should read
<?php
defined('_JEXEC') OR die("Restricted access");
$lang =& JFactory::getLanguage();
$lng=substr($lang->getName(),0,2);
$db =& JFactory::getDBO();
require_once './plugins/mobile/terawurfl/TeraWurfl.php';
$width = 0;
try
{
  $wurflObj = new TeraWurfl();
  if($wurflObj->db->connected)
  {
    $wurflObj->getDeviceCapabilitiesFromAgent();
    $width = $wurflObj->getDeviceCapability("resolution_width");
  }
}
catch(Exception $e){}
//...?>


PS. And TeraWurflConfig.php should contain correct settings (db credentials, etc.).
dididounet
13 years, 5 months ago
Stupid stupid stupid me !!! forgot that an upgrade writes over the configuration.
OK ignore everything. sorry to waste your time
2

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.