Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -624,6 +624,15 @@ class members extends Controller
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/* Extension */
|
||||
foreach( Application::allExtensions( 'core', 'UserMenu' ) as $ext )
|
||||
{
|
||||
foreach( $ext->acpRowButtons( $member ) as $key => $element )
|
||||
{
|
||||
$return[ $key ] = $element;
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
};
|
||||
@@ -1319,15 +1328,15 @@ class members extends Controller
|
||||
if ( isset( Request::i()->blockKey ) )
|
||||
{
|
||||
$exploded = explode( '_', Request::i()->blockKey );
|
||||
$class = 'IPS\\' . $exploded[0] . '\\extensions\\core\\MemberACPProfileBlocks\\' . $exploded[1];
|
||||
if ( class_exists( $class ) )
|
||||
try
|
||||
{
|
||||
$class = Application::getExtensionClass( $exploded[0], 'MemberACPProfileBlocks', $exploded[1] );
|
||||
$block = new $class( $member );
|
||||
Output::i()->output = $block->tabOutput( Request::i()->block[ Request::i()->blockKey ] );
|
||||
}
|
||||
else
|
||||
catch( OutOfRangeException )
|
||||
{
|
||||
Output::i()->output = $class;
|
||||
Output::i()->output = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user