diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-11 13:43:21 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-11 13:43:21 +0000 |
commit | 686c2e5e064573a70e38e8df6d5fb60061858599 (patch) | |
tree | 0bb53a4abec500f1ca015c88949a4dee0d35cd27 /plugins/UserFlag/flagprofile.php | |
parent | dbe02049a829dd0f3200984f1c797907aac5423f (diff) |
Added XHR for form_entity_flag
Diffstat (limited to 'plugins/UserFlag/flagprofile.php')
-rw-r--r-- | plugins/UserFlag/flagprofile.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/UserFlag/flagprofile.php b/plugins/UserFlag/flagprofile.php index c72b74c6a..77c86b233 100644 --- a/plugins/UserFlag/flagprofile.php +++ b/plugins/UserFlag/flagprofile.php @@ -108,7 +108,21 @@ class FlagprofileAction extends Action parent::handle($args); $this->flagProfile(); - $this->returnTo(); + + if ($this->boolean('ajax')) { + header('Content-Type: text/xml;charset=utf-8'); + $this->xw->startDocument('1.0', 'UTF-8'); + $this->elementStart('html'); + $this->elementStart('head'); + $this->element('title', null, _('Flagged for review')); + $this->elementEnd('head'); + $this->elementStart('body'); + $this->element('p', 'flagged', _('Flagged')); + $this->elementEnd('body'); + $this->elementEnd('html'); + } else { + $this->returnTo(); + } } function title() { |