equal
deleted
inserted
replaced
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 |