summaryrefslogtreecommitdiff
path: root/actions/updateprofile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-21 08:29:51 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-21 08:29:51 -0400
commitc78772b2748f70acc8158b665218fe53b277a031 (patch)
tree8ff1886b3a95002880c605745029ba52b7303b4f /actions/updateprofile.php
parentcb2184ed448ecb043d825d4d12b8193d63c4d84c (diff)
parent70235d7f05d2ce7dda77af88518612fa005783df (diff)
Merge branch '0.9.x' of git@gitorious.org:laconica/mainline into 0.9.x
Conflicts: actions/postnotice.php
Diffstat (limited to 'actions/updateprofile.php')
-rw-r--r--actions/updateprofile.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/actions/updateprofile.php b/actions/updateprofile.php
index 345c28b8d..b10554e8b 100644
--- a/actions/updateprofile.php
+++ b/actions/updateprofile.php
@@ -48,9 +48,31 @@ require_once INSTALLDIR.'/extlib/libomb/service_provider.php';
class UpdateprofileAction extends Action
{
+ /**
+ * For initializing members of the class.
+ *
+ * @param array $argarray misc. arguments
+ *
+ * @return boolean true
+ */
+ function prepare($argarray)
+ {
+ parent::prepare($argarray);
+ $license = $_POST['omb_listenee_license'];
+ $site_license = common_config('license', 'url');
+ if (!common_compatible_license($license, $site_license)) {
+ $this->clientError(sprintf(_('Listenee stream license ā€˜%sā€™ is not '.
+ 'compatible with site license ā€˜%sā€™.'),
+ $license, $site_license);
+ return false;
+ }
+ return true;
+ }
+
function handle($args)
{
parent::handle($args);
+
try {
$srv = new OMB_Service_Provider(null, omb_oauth_datastore(),
omb_oauth_server());