plugins/SpecialSearch.php
changeset 461 717e71109645
parent 430 ec90736b9cb9
child 504 bc8e0e9ee01d
equal deleted inserted replaced
460:3a1c99845ca8 461:717e71109645
    44   {
    44   {
    45     die_friendly('Unauthorized', '<p>You need to be an administrator to rebuild the search index</p>');
    45     die_friendly('Unauthorized', '<p>You need to be an administrator to rebuild the search index</p>');
    46   }
    46   }
    47   $template->header();
    47   $template->header();
    48   @set_time_limit(0);
    48   @set_time_limit(0);
       
    49   echo '<p>';
    49   if($paths->rebuild_search_index(true))
    50   if($paths->rebuild_search_index(true))
    50     echo '<p>Index rebuilt!</p>';
    51     echo '</p><p>Index rebuilt!</p>';
    51   else
    52   else
    52     echo '<p>Index was not rebuilt due to an error.';
    53     echo '<p>Index was not rebuilt due to an error.';
    53   $template->footer();
    54   $template->footer();
    54 }
    55 }
    55 
    56