Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2008-12-19 16:05:05 (GMT)
committer YOUR NAME <USER@develer.com>2009-02-11 19:07:41 (GMT)
commit249f8da271fab68f8a871d6b1c14d5355c047cec (patch)
tree89e883964e2c16e724933cf1e195c136e7bfed34
parent3b1eac921dfe4effb27cff3df5461ff25e412952 (diff)
Set Sugar as the app supported by all Sugar activities
-rw-r--r--site/app/controllers/developers_controller.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/site/app/controllers/developers_controller.php b/site/app/controllers/developers_controller.php
index 7f9e8bf..e530ae8 100644
--- a/site/app/controllers/developers_controller.php
+++ b/site/app/controllers/developers_controller.php
@@ -685,6 +685,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);