Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

@@ -272,6 +272,7 @@ class browse extends Controller
}
/* Output */
Output::i()->bodyAttributes['contentClass'] = Category::class;
Output::i()->title = $category->_title;
Output::i()->contextualSearchOptions[ Member::loggedIn()->language()->addToStack( 'search_contextual_item_downloads_categories' ) ] = array( 'type' => 'downloads_file', 'nodes' => $category->_id );
Output::i()->sidebar['contextual'] .= Theme::i()->getTemplate( 'browse' )->indexSidebar( Category::canOnAny('add'), $category );
@@ -164,6 +164,7 @@ class pending extends Controller
Output::i()->sendHeader( "Content-type: " . File::getMimeType( $file->originalFilename ) . ";charset=UTF-8" );
Output::i()->sendHeader( "Content-Security-Policy: default-src 'none'; sandbox" );
Output::i()->sendHeader( "X-Content-Security-Policy: default-src 'none'; sandbox" );
Output::i()->sendHeader( "Cross-Origin-Opener-Policy: same-origin" );
Output::i()->sendHeader( 'Content-Disposition: ' . Output::getContentDisposition( 'attachment', $file->originalFilename ) );
Output::i()->sendHeader( "Content-Length: " . $file->filesize() );
@@ -238,6 +238,9 @@ class submit extends Controller
{
$form->add( new Text( 'file_version', '1.0.0', $category->version_numbers == 2, array( 'maxLength' => 32 ) ) );
}
/* Call UI extensions, because we bypass that in this controller */
File::extendForm( $form, null, $category );
}
if ( $values = $form->values() )
@@ -637,7 +637,7 @@ class view extends Controller
] );
/* Data Layer Event */
if ( Settings::i()->core_datalayer_enabled )
if ( DataLayer::enabled() )
{
$properties = $this->file->getDataLayerProperties();
$properties['file_name'] = $data['record_realname'] ?: $file->originalFilename;