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

Change subject: ExtendedSearch: Fix for not indexing files in namespaces
......................................................................

ExtendedSearch: Fix for not indexing files in namespaces

Change-Id: I38fd8884e8d4f37f979998c6819cae10817952e9
ERM: #7345
---
M ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php
A ExtendedSearch/maintenance/names.txt
2 files changed, 3 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/64/375964/1

diff --git 
a/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php 
b/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php
index eb01ce6..3b2a0ee 100644
--- a/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php
+++ b/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php
@@ -96,7 +96,7 @@
                        $docType = $this->mimeDecoding( 
$document->img_minor_mime, $document->img_name );
                        if ( !$this->checkDocType( $docType, 
$document->img_name ) ) continue;
 
-                       $oTitle = Title::newFromText( $document->img_name, 
NS_FILE );
+                       $oTitle = Title::makeTitle( NS_FILE, 
$document->img_name );
                        $oFile = wfLocalFile( $oTitle );
                        if( is_null( $oFile ) ) {
                                continue;
diff --git a/ExtendedSearch/maintenance/names.txt 
b/ExtendedSearch/maintenance/names.txt
new file mode 100644
index 0000000..5a9f09b
--- /dev/null
+++ b/ExtendedSearch/maintenance/names.txt
@@ -0,0 +1,2 @@
+Datei:Energieunion:Schlacke Lammers Thesen VO-Governance.docx
+

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38fd8884e8d4f37f979998c6819cae10817952e9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>

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

Reply via email to