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,9 +3,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Most Liked Content
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2013-05-21 20:51:17 -0400 (Tue, 21 May 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
@@ -15,7 +15,7 @@
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 5th January 2012
|
||||
* @version $Revision: 10914 $
|
||||
* @version $Revision: 12263 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -63,7 +63,7 @@ class public_members_reputation_most extends ipsCommand
|
||||
//-----------------------------------------
|
||||
|
||||
/* What is it we're getting? */
|
||||
$app = ( ! empty($this->request['app_tab']) and isset($supportedApps[ $this->request['app_tab'] ]) ) ? $this->request['app_tab'] : 'forums';
|
||||
$app = ( is_string ( $this->request['app_tab'] ) && ! empty($this->request['app_tab']) and isset($supportedApps[ $this->request['app_tab'] ]) ) ? $this->request['app_tab'] : 'forums';
|
||||
|
||||
/* Load our extension class */
|
||||
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( $app ) . '/extensions/reputation.php', 'reputation_' . $app, $app );
|
||||
@@ -120,12 +120,14 @@ class public_members_reputation_most extends ipsCommand
|
||||
|
||||
/* Process Results */
|
||||
$processedResults = count($results) ? $reputationClass->display( $results ) : '';
|
||||
|
||||
$this->lang->loadLanguageFile( array( 'public_profile' ), 'members' );
|
||||
|
||||
/* Setup page */
|
||||
$langBit = ipsRegistry::$settings['reputation_point_types'] == 'like' ? 'most_rep_likes' : 'most_rep_rep';
|
||||
$this->registry->output->setTitle( $this->lang->words[ $langBit ] );
|
||||
$this->registry->output->setTitle( $this->lang->words[ $langBit ] . ' - ' . IPSLib::getAppTitle( $app ) );
|
||||
$this->registry->output->addNavigation( $this->lang->words[ $langBit ], NULL );
|
||||
|
||||
|
||||
/* Display processed results */
|
||||
$this->registry->output->addContent( $this->registry->getClass('output')->getTemplate('profile')->reputationPage( $langBit, $app, $supportedApps, $processedResults ) );
|
||||
$this->registry->output->sendOutput();
|
||||
|
||||
Reference in new issue
Block a user