getNewestAddonsByGuid($_app,'E',10); $popularExtensions = $amo->getPopularAddonsByGuid($_app,'E',10); /* This is a bit of a cheesy hack because of the way the templates are written. * It's looking for the name of the app in $_GET, so here we are...*/ $_GET['app'] = strtolower($amo->getAppNameFromGuid($_app)); } else { $newestExtensions = $amo->getNewestAddons($clean['app'],'E',10); $popularExtensions = $amo->getPopularAddons($clean['app'],'E',10); } // Assign template variables. $tpl->assign( array( 'newestExtensions' => $newestExtensions, 'popularExtensions' => $popularExtensions, 'title' => 'Add-ons', 'currentTab' => $currentTab, 'content' => 'extensions.tpl', 'sidebar' => 'inc/category-sidebar.tpl', 'cats' => $amo->getCats('E'), 'type' => 'E') ); ?>