From 50827d5e81c1b6a5c99e0d0fba2d6ed4c0d22875 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Thu, 19 Nov 2009 19:56:24 -0800 Subject: Don't show flag user button your own profile --- plugins/UserFlag/flagprofile.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/UserFlag/flagprofile.php') diff --git a/plugins/UserFlag/flagprofile.php b/plugins/UserFlag/flagprofile.php index b01d07e34..9bce7865b 100644 --- a/plugins/UserFlag/flagprofile.php +++ b/plugins/UserFlag/flagprofile.php @@ -86,12 +86,6 @@ class FlagprofileAction extends ProfileFormAction function handle($args) { - if ($this->boolean('ajax')) { - common_debug("ajax called for"); - } else { - common_debug("no ajax"); - } - if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->handlePost(); if (!$this->boolean('ajax')) { @@ -125,7 +119,7 @@ class FlagprofileAction extends ProfileFormAction } $ufp->free(); - + if ($this->boolean('ajax')) { $this->ajaxResults(); } -- cgit v1.2.3-54-g00ecf