- Issue created by @Harshita mehra
- Status changed to Needs review
over 1 year ago 12:23pm 13 June 2023 - 🇮🇳India Harshita mehra
I have uploaded a patch for the issue.
Please review.
Thanks! Hi @Harshita mehna,
Verified the patch it's cleanly applied.- Status changed to RTBC
over 1 year ago 6:59am 23 June 2023 - Status changed to Closed: works as designed
over 1 year ago 10:53am 8 August 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
Since the code first checks the Drupal version, that is fine.
if (((int) \Drupal::VERSION) < 9) { if (file_prepare_directory($path, FILE_CREATE_DIRECTORY) && !file_exists($path)) { file_copy($file, $path); } $images = file_scan_directory($themeLink . '/content/images', '/.*\.jpg|jpeg|gif|png|pdf|doc|zip|rar|docx|7zip|txt|rtf|odt|7z|ods$/'); $videos = file_scan_directory($themeLink . '/video', '/.*\.mp4$/'); }
It does not use that constant in Drupal 9.