plugins/SpecialSearch.php
changeset 335 67bd3121a12e
parent 334 c72b545f1304
child 343 eefe9ab7fe7c
equal deleted inserted replaced
334:c72b545f1304 335:67bd3121a12e
   241       echo $html;
   241       echo $html;
   242     }
   242     }
   243     else
   243     else
   244     {
   244     {
   245       // No results for the search
   245       // No results for the search
   246       echo '<h3 style="font-weight: normal;">Your search for <b>"' . htmlspecialchars($q) . '"</b> didn\'t turn up any results.</h3>';
   246       echo '<h3 style="font-weight: normal;">' . $lang->get('search_body_no_results_title', array('query' => htmlspecialchars($q))) . '</h3>';
   247       echo '<p>There are a few things you can try:</p>';
   247       echo $lang->get('search_body_no_results_body', array(
   248       echo '<ul>
   248           'query' => htmlspecialchars($q),
   249               <li>Were you looking for a specific Special page? Special pages are not searchable. You may want to see a <a href="' . makeUrlNS('Special', 'SpecialPages') . '">list of special pages</a>.</li>
   249           'create_url' => makeUrl($q),
   250               <li>If you have the appropriate permissions, you can <a href="' . makeUrl($q) . '#do:edit">start the ' . htmlspecialchars($q) . ' page</a>.</li>
   250           'special_url' => makeUrlNS('Special', 'SpecialPages'),
   251               <li>Try using fewer keywords. You can get broader results if you remove quotes from your search query.</li>
   251         ));
   252               <li>Did your search trigger any warnings? Sometimes a search can be cancelled if there aren\'t any terms in a search query that are 4 characters or greater in length.</li>
       
   253             </ul>';
       
   254     }
   252     }
   255     $code = $plugins->setHook('search_results');
   253     $code = $plugins->setHook('search_results');
   256     foreach ( $code as $cmd )
   254     foreach ( $code as $cmd )
   257     {
   255     {
   258       eval($cmd);
   256       eval($cmd);