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 Staff Directory User Node
* @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 18 Sep 2013
* @version SVN_VERSION_NUMBER
*/
@@ -48,6 +48,11 @@ class _User extends \IPS\Node\Model
*/
protected static $databaseIdFields = array( 'leader_type_id' );
/**
* @brief [ActiveRecord] Multiton Map
*/
protected static $multitonMap = array();
/**
* @brief [Node] Parent Node ID Database Column
*/
@@ -204,10 +209,13 @@ class _User extends \IPS\Node\Model
\IPS\Lang::saveCustom( 'core', "core_staff_directory_title_{$this->id}", $values['leader_custom_title'] );
}
if( isset( $values['leader_custom_bio'] ) )
if( array_key_exists( 'leader_custom_bio', $values ) )
{
$toUnset[] = 'leader_custom_bio';
\IPS\Lang::saveCustom( 'core', "core_staff_directory_bio_{$this->id}", $values['leader_custom_bio'] );
if ( isset ( $values['leader_custom_bio'] ) )
{
\IPS\Lang::saveCustom( 'core', "core_staff_directory_bio_{$this->id}", $values['leader_custom_bio'] );
}
}
if( count( $toUnset ) )
@@ -251,7 +259,7 @@ class _User extends \IPS\Node\Model
{
if( \IPS\Member::loggedIn()->language()->checkKeyExists("core_staff_directory_name_{$this->id}") and \IPS\Member::loggedIn()->language()->get("core_staff_directory_name_{$this->id}") )
{
return \IPS\Member::loggedIn()->language()->addToStack( "core_staff_directory_name_{$this->id}" );
return \IPS\Member::loggedIn()->language()->addToStack( "core_staff_directory_name_{$this->id}", FALSE, array( 'escape' => TRUE ) );
}
return \IPS\Member::load( $this->type_id )->name;