mUserId; if( !empty( $gQueryUser->mUserId ) ) { $userId = $gQueryUser->mUserId; } if( empty( $module_title ) ) { if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) { $title = KernelTools::tra( "Last Changes" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'], true ); $gBitSmarty->assign( 'contentType', $module_params['content_type_guid'] ); } else { $gBitSmarty->assign( 'contentType', false ); $title = KernelTools::tra( "Last Changes" ); } $gBitSmarty->assign( 'moduleTitle', $title ); } if( !empty( $module_params['show_date'] ) ) { $gBitSmarty->assign( 'userShowDate', true ); } $listHash = [ 'content_type_guid' => !empty( $module_params['content_type_guid'] ) ? $module_params['content_type_guid'] : null, 'offset' => 0, 'max_records' => $module_rows, 'sort_mode' => 'last_modified_desc', 'user_id' => $userId, ]; $modLastPages = $gBitUser->getContentList( $listHash ); $gBitSmarty->assign( 'modLastPages', $modLastPages ); ?>