Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Allow user to change their status
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2012-11-05 09:03:19 -0500 (Mon, 05 Nov 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: AndyMillne $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Tuesday 1st March 2005 (11:52)
|
||||
* @version $Revision: 10914 $
|
||||
* @version $Revision: 11554 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -122,7 +122,7 @@ class public_members_ajax_status extends ipsAjaxCommand
|
||||
$statusData = $this->registry->getClass('memberStatus')->getStatusData();
|
||||
|
||||
/* Fetch */
|
||||
$this->returnJsonArray( array( 'status' => 'success', 'status_replies' => $statusData['status_replies'] + 1, 'html' => $this->cleanOutput( $this->registry->getClass('output')->getTemplate( $skin_group )->statusReplies( $this->registry->getClass('memberStatus')->fetchAllReplies() ) ) ) );
|
||||
$this->returnJsonArray( array( 'status' => 'success', 'status_replies' => $statusData['status_replies'] + 1, 'html' => $this->registry->getClass('output')->getTemplate( $skin_group )->statusReplies( $this->registry->getClass('memberStatus')->fetchAllReplies() ) ), true );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -311,7 +311,7 @@ class public_members_ajax_status extends ipsAjaxCommand
|
||||
/* And the number of replies */
|
||||
$statusData = $this->registry->getClass('memberStatus')->getStatusData();
|
||||
|
||||
$this->returnJsonArray( array( 'status' => 'success', 'html' => $this->cleanOutput( $reply ), 'status_replies' => $statusData['status_replies'] + 1 ) );
|
||||
$this->returnJsonArray( array( 'status' => 'success', 'html' => $reply, 'status_replies' => $statusData['status_replies'] + 1 ), true );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -371,9 +371,25 @@ class public_members_ajax_status extends ipsAjaxCommand
|
||||
/* Update */
|
||||
$newStatus = $this->registry->getClass('memberStatus')->create();
|
||||
|
||||
/* Now grab the reply and return it */
|
||||
$new = $this->registry->getClass('output')->getTemplate( $skin_group )->statusUpdates( $this->registry->getClass('memberStatus')->fetch( $this->memberData['member_id'], array( 'relatedTo' => $forMemberId, 'isApproved' => true, 'sort_dir' => 'desc', 'limit' => 1 ) ), $smallSpace );
|
||||
if ( ! $newStatus )
|
||||
{
|
||||
$this->returnJsonError( $this->lang->words['status_off'] );
|
||||
}
|
||||
|
||||
$this->returnJsonArray( array( 'status' => 'success', 'html' => $this->cleanOutput( $new ) ) );
|
||||
/* Now grab the reply and return it */
|
||||
$status = $this->registry->getClass('memberStatus')->fetch( $this->memberData['member_id'], array( 'relatedTo' => $forMemberId, 'sort_dir' => 'desc', 'limit' => 1 ) );
|
||||
|
||||
$last = $status;
|
||||
$last = array_pop( $last );
|
||||
|
||||
if ( $last['status_approved'] )
|
||||
{
|
||||
$new = $this->registry->getClass('output')->getTemplate( $skin_group )->statusUpdates( $status, $smallSpace );
|
||||
$this->returnJsonArray( array( 'status' => 'success', 'html' => $new ), true );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->returnJsonError( 'prof_comment_mod' );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user