Just fixed a problem with “JA NEWS” module that I found in the Joomla 1.0x installer.
Problem: I get an error like “JFactory class” when publish the JA_NEWS module
file: helper.php
change the last function to:
function getAllCatIds ($catorsec) {
global $database;
// $db =& JFactory::getDBO();
if($catorsec){
$query = “SELECT id FROM #__categories WHERE published = 1;”;
}
else{
$query = “SELECT id FROM #__sections WHERE published = 1;”;
}
// $db->setQuery($query);
$database->setQuery($query);
$c = $database->loadObjectList();
$catids = array();
foreach($c as $_c) $catids[] = $_c->id;
return $catids;
}
This will fix it…
Hope this helps others…
Maybe update in the “install” file from the beginning…
Best regards,
André