jenkins-bot has submitted this change and it was merged. ( 
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
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Robert Vogel: Looks good to me, approved
  jenkins-bot: Verified



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;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I38fd8884e8d4f37f979998c6819cae10817952e9
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>
Gerrit-Reviewer: Ljonka <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to