Skip to content

Commit

Permalink
Cleanups for v11
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Nov 15, 2022
1 parent c7222b9 commit f7545c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
12 changes: 0 additions & 12 deletions Classes/Domain/Model/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
namespace HVP\Html5videoplayer\Domain\Model;

use TYPO3\CMS\Extbase\Annotation\Validate;
use \FoT3\Mediace\MediaWizard\MediaWizardProviderManager;
use \HVP\Html5videoplayer\Div;
use \TYPO3\CMS\Core\Core\Environment;
use \TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
Expand Down Expand Up @@ -527,17 +526,6 @@ protected function retrieveMediaUrl($media)
return $filePathSanitizer->sanitize(rawurldecode($media));
}

$mediaWizard = null;
if (class_exists(MediaWizardProviderManager::class)) {
$mediaWizard = MediaWizardProviderManager::getValidMediaWizardProvider($media);
}
if ($mediaWizard !== null) {
$cObj = new ContentObjectRenderer();
return $cObj->typoLink_URL([
'parameter' => $mediaWizard->rewriteUrl($media)
]);
}

if (GeneralUtility::isValidUrl($media)) {
// prevent "data:" and "javascript:" Resources! Whitelist!
if (!in_array(parse_url($media, PHP_URL_SCHEME), ['http', 'https'])) {
Expand Down
4 changes: 1 addition & 3 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_html5videoplayer_domain_model_video');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_html5videoplayer_video_content');

if (TYPO3_MODE === 'BE') {
$GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses'][\HVP\Html5videoplayer\Wizicon::class] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($extKey) . 'Classes/Wizicon.php';
}
$GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses'][\HVP\Html5videoplayer\Wizicon::class] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($extKey) . 'Classes/Wizicon.php';
})();

0 comments on commit f7545c8

Please sign in to comment.