Addshore has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/341137 )

Change subject: Don't show rdf2latex table hint after rendering with 
ElectronPdfService
......................................................................

Don't show rdf2latex table hint after rendering with ElectronPdfService

Bug: T157432
Change-Id: I99d80af4a2e67ad48088b07d652cbc03cee10bad
---
M templates/CollectionFinishedTemplate.php
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection 
refs/changes/37/341137/1

diff --git a/templates/CollectionFinishedTemplate.php 
b/templates/CollectionFinishedTemplate.php
index b431921..08e21eb 100644
--- a/templates/CollectionFinishedTemplate.php
+++ b/templates/CollectionFinishedTemplate.php
@@ -19,6 +19,12 @@
 
                $notes = '';
                foreach ( $wgCollectionShowRenderNotes as $noteKey ) {
+                       if (
+                               ExtensionRegistry::getInstance()->isLoaded( 
'ElectronPdfService' ) &&
+                               $noteKey === 
'coll-rendering_finished_note_article_rdf2latex'
+                       ) {
+                               continue;
+                       }
 
                        if ( $noteKey === 
'coll-rendering_finished_note_article_rdf2latex' ) {
                                // Show a note specific to the rdf2latex when 
rendering an article

-- 
To view, visit https://gerrit.wikimedia.org/r/341137
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I99d80af4a2e67ad48088b07d652cbc03cee10bad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to