Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -7,7 +7,7 @@
|
||||
* $Author: ips_terabyte $
|
||||
* @since -
|
||||
* $LastChangedDate: 2011-03-18 17:34:15 -0400 (Fri, 18 Mar 2011) $
|
||||
* @version v3.3.4
|
||||
* @version v3.4.5
|
||||
* $Revision: 8129 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
*~TERABYTE_DOC_READY~
|
||||
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
|
||||
* $License: http://www.invisionpower.com/company/standards.php#license$
|
||||
* $Author: mark $
|
||||
* $Author: AndyMillne $
|
||||
* @since 2.2.0
|
||||
* $LastChangedDate: 2011-12-20 11:14:05 -0500 (Tue, 20 Dec 2011) $
|
||||
* @version v3.3.4
|
||||
* $Revision: 10035 $
|
||||
* $LastChangedDate: 2013-03-21 17:38:09 -0400 (Thu, 21 Mar 2013) $
|
||||
* @version v3.4.5
|
||||
* $Revision: 12109 $
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'apiCore' ) )
|
||||
@@ -61,7 +61,7 @@ class apiTopicView extends apiCore
|
||||
* @param boolean Load only topics viewable by guests?
|
||||
* @return @e array Array of topics data
|
||||
*/
|
||||
public function return_topic_list_data( $view_as_guest=false )
|
||||
public function return_topic_list_data( $view_as_guest=false, $parse_display=false )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
@@ -168,6 +168,24 @@ class apiTopicView extends apiCore
|
||||
$row['link-forum'] = $this->registry->getClass('output')->buildSEOUrl( "showforum={$row['forum_id']}", 'public', $row['name_seo'], 'showforum' );
|
||||
$row['link-profile'] = $this->registry->getClass('output')->buildSEOUrl( "showuser={$row['member_id']}", 'public', $row['members_seo_name'], 'showuser' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Parse for display - http://community.invisionpower.com/resources/bugs.html/_/ip-board/xml-rpc-returning-bbcode-r41329
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $parse_display )
|
||||
{
|
||||
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/text/parser.php', 'classes_text_parser' );
|
||||
$parser = new $classToLoad();
|
||||
|
||||
/* Set up some settings */
|
||||
$parser->set( array( 'parseArea' => 'topics',
|
||||
'parseBBCode' => true,
|
||||
'parseHtml' => true,
|
||||
'parseEmoticons' => true ) );
|
||||
|
||||
$row['post'] = $parser->display( $row['post'] );
|
||||
}
|
||||
|
||||
$topics[] = $row;
|
||||
}
|
||||
|
||||
@@ -177,7 +195,7 @@ class apiTopicView extends apiCore
|
||||
|
||||
$this->DB->build( array( 'select' => '*',
|
||||
'from' => 'attachments',
|
||||
'where' => "attach_rel_module='post' AND attach_rel_id IN (" . implode( ",", $this->attach_pids ) . ")"
|
||||
'where' => "attach_rel_module='post' AND attach_rel_id IN (" . IPSText::cleanPermString( implode( ",", $this->attach_pids ) ) . ")"
|
||||
) );
|
||||
|
||||
$this->DB->execute();
|
||||
|
||||
Reference in new issue
Block a user