summaryrefslogtreecommitdiff
path: root/plugins/SphinxSearch/scripts/index_update.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-04 00:02:24 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-04 00:02:24 +0200
commit1652ded48c9c62c40157a5142e5231adbc574ddb (patch)
tree15796c59bd411160154f2ae85e4acd44a34da047 /plugins/SphinxSearch/scripts/index_update.php
parent362f395e035682cd8d2437cfca904654687be867 (diff)
i18n/L10n review, extension credits added.
Diffstat (limited to 'plugins/SphinxSearch/scripts/index_update.php')
-rwxr-xr-xplugins/SphinxSearch/scripts/index_update.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SphinxSearch/scripts/index_update.php b/plugins/SphinxSearch/scripts/index_update.php
index 23c60ced7..abac5434f 100755
--- a/plugins/SphinxSearch/scripts/index_update.php
+++ b/plugins/SphinxSearch/scripts/index_update.php
@@ -42,20 +42,20 @@ sphinx_iterate_sites('sphinx_index_update');
function sphinx_index_update($sn)
{
$base = sphinx_base();
-
+
$baseIndexes = array('notice', 'profile');
$params = array();
-
+
if (have_option('rotate')) {
$params[] = '--rotate';
}
foreach ($baseIndexes as $index) {
$params[] = "{$sn->dbname}_{$index}";
}
-
+
$params = implode(' ', $params);
$cmd = "$base/bin/indexer --config $base/etc/sphinx.conf $params";
-
+
print "$cmd\n";
system($cmd);
}