Fixes broken search

This commit is contained in:
Samuel Georges 2015-04-04 17:31:39 +11:00
parent c54821f175
commit a921201d6d
1 changed files with 3 additions and 3 deletions

View File

@ -643,7 +643,7 @@ class Updates extends Controller
// Product install // Product install
// //
public function install_onSearchProducts() public function onSearchProducts()
{ {
$searchType = get('search', 'plugins'); $searchType = get('search', 'plugins');
$serverUri = $searchType == 'plugins' ? 'plugin/search' : 'theme/search'; $serverUri = $searchType == 'plugins' ? 'plugin/search' : 'theme/search';
@ -652,7 +652,7 @@ class Updates extends Controller
return $manager->requestServerData($serverUri, ['query' => get('query')]); return $manager->requestServerData($serverUri, ['query' => get('query')]);
} }
public function install_onGetPopularPlugins() public function onGetPopularPlugins()
{ {
$installed = $this->getInstalledPlugins(); $installed = $this->getInstalledPlugins();
$popular = UpdateManager::instance()->requestPopularProducts('plugin'); $popular = UpdateManager::instance()->requestPopularProducts('plugin');
@ -661,7 +661,7 @@ class Updates extends Controller
return ['result' => $popular]; return ['result' => $popular];
} }
public function install_onGetPopularThemes() public function onGetPopularThemes()
{ {
$installed = $this->getInstalledThemes(); $installed = $this->getInstalledThemes();
$popular = UpdateManager::instance()->requestPopularProducts('theme'); $popular = UpdateManager::instance()->requestPopularProducts('theme');