Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -137,7 +137,7 @@ class App extends ActiveRecord
|
||||
$this->start_date = time();
|
||||
parent::save();
|
||||
|
||||
Application::checkConvParent( $this->getSource()->getLibrary()->app );
|
||||
Application::checkConvParent( $this->getSource()->getLibrary()->getAppKey() );
|
||||
|
||||
Db::i()->insert( 'convert_app_sessions', array(
|
||||
'session_app_id' => $this->app_id,
|
||||
@@ -433,7 +433,7 @@ class App extends ActiveRecord
|
||||
{
|
||||
$table = 'convert_link';
|
||||
|
||||
if ( in_array( $type, [ 'core_message_topics', 'core_message_posts', 'core_message_topic_user_map', 'forums_topics', 'forums_posts', 'forums_topics_old', 'forums_posts_old' ] ) AND $mainTable === FALSE )
|
||||
if ( in_array( $type, [ 'core_message_topics', 'core_message_posts', 'core_message_topic_user_map', 'forums_topics', 'forums_posts', 'forums_posts_first', 'forums_topics_old', 'forums_posts_old' ] ) AND $mainTable === FALSE )
|
||||
{
|
||||
if ( in_array( $type, array( 'core_message_topics', 'core_message_posts', 'core_message_topic_user_map' ) ) )
|
||||
{
|
||||
@@ -441,7 +441,7 @@ class App extends ActiveRecord
|
||||
}
|
||||
else
|
||||
{
|
||||
$tableType = str_replace( [ 'forums_', '_old' ], '', $type );
|
||||
$tableType = str_replace( [ 'forums_', '_first', '_old' ], '', $type );
|
||||
$table = "convert_link_{$tableType}";
|
||||
}
|
||||
}
|
||||
@@ -716,7 +716,7 @@ class App extends ActiveRecord
|
||||
* @return void
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function log( string $message, string $method, int $severity=1, ?int $id=NULL ) : void
|
||||
public function log( string $message, string $method, int $severity=1, int $id=NULL ) : void
|
||||
{
|
||||
if ( ! in_array( $severity, array( static::LOG_NOTICE, static::LOG_WARNING, static::LOG_ERROR ) ) )
|
||||
{
|
||||
@@ -837,7 +837,7 @@ class App extends ActiveRecord
|
||||
|
||||
if ( $mainTable === FALSE )
|
||||
{
|
||||
if ( in_array( $type, array( 'core_message_topics', 'core_message_posts', 'core_message_topic_user_map', 'forums_topics', 'forums_posts', 'forums_topics_old', 'forums_posts_old' ) ) )
|
||||
if ( in_array( $type, array( 'core_message_topics', 'core_message_posts', 'core_message_topic_user_map', 'forums_topics', 'forums_posts', 'forums_posts_first', 'forums_topics_old', 'forums_posts_old' ) ) )
|
||||
{
|
||||
if ( in_array( $type, array( 'core_message_topics', 'core_message_posts', 'core_message_topic_user_map' ) ) )
|
||||
{
|
||||
@@ -845,7 +845,7 @@ class App extends ActiveRecord
|
||||
}
|
||||
else
|
||||
{
|
||||
$tableType = str_replace( [ 'forums_', '_old' ], '', $type );
|
||||
$tableType = str_replace( [ 'forums_', '_first', '_old' ], '', $type );
|
||||
$table = "convert_link_{$tableType}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user