Version 4.1.19

This commit is contained in:
Neo committed 2025-12-19 05:38:56 -08:00
1 parent 28bd025b35
commit 2bd5025018
2674 files changed
+233518 -77766

No files matched your search

@@ -2,9 +2,9 @@
/**
* @brief "Content" functions Controller
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Social Suite
* @package IPS Community Suite
* @since 29 Apr 2013
* @version SVN_VERSION_NUMBER
*/
@@ -44,10 +44,9 @@ class _content extends \IPS\Dispatcher\Controller
try
{
$item = $class::load( \IPS\Request::i()->content_id );
$commentClass = $class::$commentClass;
$comment = $commentClass::load( \IPS\Request::i()->content_commentid );
$item = $comment->item();
}
catch( \OutOfRangeException $ex )
{
@@ -55,7 +54,7 @@ class _content extends \IPS\Dispatcher\Controller
}
/* Make sure we have permission to see this */
if ( ( $comment->item()->tid == $item->tid ) AND $item->canView() AND $comment->canView() )
if ( $item->canView() AND $comment->canView() )
{
\IPS\Output::i()->redirect( $comment->url() );
}
@@ -64,5 +63,4 @@ class _content extends \IPS\Dispatcher\Controller
\IPS\Output::i()->error( 'node_error', '2S226/4', 404, '' );
}
}
}