kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-09-12 02:55 pm

[dw-free] Guides need to be searchable

[commit: http://hg.dwscoalition.org/dw-free/rev/69fa986aa326]

http://bugs.dwscoalition.org/show_bug.cgi?id=1089

Include uncategorized FAQs in search.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/Faq.pm
--------------------------------------------------------------------------------
diff -r cef2218ab1c7 -r 69fa986aa326 cgi-bin/LJ/Faq.pm
--- a/cgi-bin/LJ/Faq.pm	Sat Sep 12 09:37:06 2009 -0500
+++ b/cgi-bin/LJ/Faq.pm	Sat Sep 12 09:54:57 2009 -0500
@@ -454,7 +454,7 @@ sub load_matching {
     croak("unknown parameters: " . join(", ", keys %opts))
         if %opts;
 
-    my @faqs = $class->load_all(lang => $lang);
+    my @faqs = $class->load_all( lang => $lang, allow_no_cat => 1 );
     die "unable to load faqs" unless @faqs;
 
     my %scores  = (); # faqid => score
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org