katzwebservices / Wunderground

Get accurate and beautiful weather forecasts powered by Wunderground.com for your content or your sidebar.
MIT License
23 stars 13 forks source link

Objects not found #37

Open JaneneF opened 8 years ago

JaneneF commented 8 years ago

My site updated to the latest version of Wunderground. Now the objects that my homepage needs are not found.

I have the following code include "Autoload.class.php"; include_once('includes/hostConfig.inc.php'); $galleryPhotoDTO = new GalleryPhotosDTO();

The GalleryPhotosDTO object is not found. This was not happening in an older version of the plugin.

Here is my Autoload.class.php

<?php function __autoload($class) { if (strpos($class,'DTO') !== false) { include 'dao/' . $class.".class.php"; } else if (strpos($class,'DAO') !== false) { include 'dao/' . $class.".class.php"; } else { include $class.".class.php"; } } ?>

Any help would be appreciated.

Janene