Version 4.5.0

This commit is contained in:
Neo committed 2025-12-19 05:51:58 -08:00
1 parent 1a0c7fd3c2
commit f79dcf067a
3791 files changed
+248032 -76372

No files matched your search

+6 -6
View File
@@ -12,7 +12,7 @@
namespace IPS\nexus;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
@@ -51,7 +51,7 @@ abstract class _Payout extends \IPS\Patterns\ActiveRecord
*/
public static function constructFromData( $data, $updateMultitonStoreIfExists = TRUE )
{
$classname = 'IPS\nexus\Gateway\\' . $data['po_gateway'] . '\\Payout';
$classname = \IPS\nexus\Gateway::payoutGateways()[ $data['po_gateway'] ];
/* Initiate an object */
$obj = new $classname;
@@ -82,7 +82,7 @@ abstract class _Payout extends \IPS\Patterns\ActiveRecord
{
$this->date = new \IPS\DateTime;
$this->status = static::STATUS_PENDING;
$this->gateway = preg_replace( '/.+?\\\([A-Z]+?)\\\Payout$/i', '$1', get_called_class() );
$this->gateway = preg_replace( '/.+?\\\([A-Z]+?)\\\Payout$/i', '$1', \get_called_class() );
}
/**
@@ -104,7 +104,7 @@ abstract class _Payout extends \IPS\Patterns\ActiveRecord
$table->parsers = array(
'po_status' => function( $val )
{
return \IPS\Theme::i()->getTemplate('payouts')->status( $val );
return \IPS\Theme::i()->getTemplate( 'payouts', 'nexus' )->status( $val );
},
'po_member' => function ( $val, $row )
{
@@ -271,7 +271,7 @@ abstract class _Payout extends \IPS\Patterns\ActiveRecord
$return['approve'] = array(
'title' => 'approve',
'icon' => 'check',
'link' => $url->setQueryString( 'do', 'process' ),
'link' => $url->setQueryString( 'do', 'process' )->csrf(),
'data' => array( 'confirm' => '' )
);
}
@@ -280,7 +280,7 @@ abstract class _Payout extends \IPS\Patterns\ActiveRecord
$return['cancel'] = array(
'title' => 'cancel',
'icon' => 'times',
'link' => $url->setQueryString( 'do', 'cancel' ),
'link' => $url->setQueryString( 'do', 'cancel' )->csrf(),
'data' => array(
'confirm' => '',
'confirmMessage' => \IPS\Member::loggedIn()->language()->addToStack('payout_cancel_confirm'),