aboutsummaryrefslogtreecommitdiffstats
path: root/mod/oexchange.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/oexchange.php')
-rw-r--r--mod/oexchange.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/mod/oexchange.php b/mod/oexchange.php
index bbb436e70..791a493ff 100644
--- a/mod/oexchange.php
+++ b/mod/oexchange.php
@@ -3,25 +3,22 @@
function oexchange_init(&$a) {
- if(($a->argc > 1) && ($a->argv[1] === 'xrd')) {
+ if((argc() > 1) && (argv(1) === 'xrd')) {
$tpl = get_markup_template('oexchange_xrd.tpl');
$o = replace_macros($tpl, array('$base' => $a->get_baseurl()));
echo $o;
killme();
}
-
-
}
function oexchange_content(&$a) {
if(! local_user()) {
- $o = login(false);
- return $o;
+ return login(false);
}
- if(($a->argc > 1) && $a->argv[1] === 'done') {
+ if((argc() > 1) && argv(1) === 'done') {
info( t('Post successful.') . EOL);
return;
}