On Tue, Nov 3, 2009 at 12:21 PM, Ross Xu <[email protected]> wrote:

> Hi there,
> There is a patch under:
>
> http://www.mediawiki.org/wiki/Extension_talk:EzMwLucene#Special:Upload_broken_on_new_install
> which would fix the "Special:Upload broken on new install" problem.
>
> Sorry for my stupid question, but how to apply the patch?
> Should I need to copy it to the end of EzMwLuceneIndexer.php file?
>
> Thanks in advance.
> Ross


Those are my bugs/fixes on the talk page.

You could have (and should, now) learn what patches are by using Google.
This patch is very easy to understand. One line has been modified and
replaced by another.

--- EzMwLuceneIndexer.php.old   2009-05-08 16:26:28.000000000 -0500
+++ EzMwLuceneIndexer.php       2009-05-08 16:26:00.000000000 -0500
@@ -38,7 +38,7 @@
               $xml .=
"<content><![CDATA[{$revision->getRawText()}]]></content>";

               /* If the article is in the Image namespace, add the file url */
               if ($article->getTitle()->getNamespace()==6) {
-                       $file =  wfFindFile($article->getTitle());

+                       $file = wfFindFile($article->getTitle(),false,0,true);
                       $xml .=
"<attachment><![CDATA[{$file->getFullUrl()}]]></attachment>";
               }

               $xml .= '</article>';



Cheers,
Brian
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to