portfolio: MDL-16417 Prevent multiple googledocs/picassa instances
authorDan Poltawski <dan.poltawski@lancaster.ac.uk>
Sat, 21 Nov 2009 13:46:45 +0000 (13:46 +0000)
committerDan Poltawski <dan.poltawski@lancaster.ac.uk>
Sat, 21 Nov 2009 13:46:45 +0000 (13:46 +0000)
portfolio/googledocs/lib.php
portfolio/picasa/lib.php

index 8201836..2a23e6c 100644 (file)
@@ -93,6 +93,9 @@ class portfolio_plugin_googledocs extends portfolio_plugin_push_base {
         google_docs::set_sesskey($this->sessiontoken, $this->get('user')->id);
     }
 
+    public static function allows_multiple_instances() {
+        return false;
+    }
 }
 
 /**
index 0632a7a..f0fab4a 100644 (file)
@@ -86,6 +86,9 @@ class portfolio_plugin_picasa extends portfolio_plugin_push_base {
         google_picasa::set_sesskey($this->sessionkey, $this->get('user')->id);
     }
 
+    public static function allows_multiple_instances() {
+        return false;
+    }
 }
 
 /**