diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2008-12-19 16:05:05 (GMT) |
---|---|---|
committer | David Farning <dfarning@gmail.com> | 2009-03-21 00:19:24 (GMT) |
commit | 939dc5add55287c30e569912dbe0a1e1221a921e (patch) | |
tree | a636596def29beeccd1f4a07df84c22275cbe30a | |
parent | 7a7e32d0a74ec93afb4f6a1ee4fdca535d897e9c (diff) |
Set Sugar as the app supported by all Sugar activities
-rw-r--r-- | site/app/controllers/developers_controller.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/site/app/controllers/developers_controller.php b/site/app/controllers/developers_controller.php index 25968e3..91627fc 100644 --- a/site/app/controllers/developers_controller.php +++ b/site/app/controllers/developers_controller.php @@ -692,6 +692,16 @@ class DevelopersController extends AppController ) ); } + elseif ($addon['Addon']['addontype_id'] == ADDON_ACTIVITY) { + // Sugar activities only support Sugar + $supportedApps = array( + 0 => array( + 'Application' => array( + 'id' => APP_SUGAR + ) + ) + ); + } else { // Get all applications the add-on has ever supported $supportedApps = $this->Addon->getApplicationsEverSupported($addon_id); |