diff --git a/AddMediaInfo.patch b/AddMediaInfo.patch deleted file mode 100644 index 840f28c..0000000 --- a/AddMediaInfo.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/AddMediaInfo.php b/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/AddMediaInfo.php -index 507ae1d..77c28fd 100644 ---- a/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/AddMediaInfo.php -+++ b/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/AddMediaInfo.php -@@ -189,7 +189,7 @@ class AddMediaInfo implements Wt2HtmlDOMProcessor { - $source->setAttribute( 'data' . $fromFile . '-width', (string)$o['width'] ); - $source->setAttribute( 'data' . $fromFile . '-height', (string)$o['height'] ); - } -- if ( $dataFromTMH ) { -+ if ( $dataFromTMH && isset( $o['title'] ) && isset( $o['shorttitle'] ) ) { - $source->setAttribute( 'data-title', $o['title'] ); - $source->setAttribute( 'data-shorttitle', $o['shorttitle'] ); - } diff --git a/Dockerfile b/Dockerfile index e190dbe..b496ecd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -135,14 +135,6 @@ COPY skins/Vector/resources/skins.vector.styles/components/MenuTabs.less \ # need to run composer update after getting the extensions. RUN php composer.phar update --no-dev -# TODO: Once we move past 1.39, test if patch is still necessary, create a page -# with source: -# [[File:Hunga Tonga–Hunga Ha'apai volcanic eruption captured at December 30, 2021.webm|thumb|test]] -# See if VisualEditor throws an when you tried to edit the page. -# Patch from: https://phabricator.wikimedia.org/T350594 -COPY AddMediaInfo.patch ./AddMediaInfo.patch -RUN git apply AddMediaInfo.patch - RUN mkdir -p /data \ && chmod a+rw /var/www/html/extensions/Widgets/compiled_templates