projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds email count in massmailer and displays it in the axletter notification email.
[platal.git]
/
bin
/
search.rebuild_db.php
diff --git
a/bin/search.rebuild_db.php
b/bin/search.rebuild_db.php
index
1b9917f
..
cd7e56c
100755
(executable)
--- a/
bin/search.rebuild_db.php
+++ b/
bin/search.rebuild_db.php
@@
-1,7
+1,7
@@
#!/usr/bin/php5 -q
<?php
/***************************************************************************
#!/usr/bin/php5 -q
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,17
+21,16
@@
***************************************************************************/
require('./connect.db.inc.php');
***************************************************************************/
require('./connect.db.inc.php');
-require('user.func.inc.php');
ini_set('memory_limit', "16M");
$globals->debug = 0; // Do not store backtraces
ini_set('memory_limit', "16M");
$globals->debug = 0; // Do not store backtraces
-$res = XDB::iterRow(
"SELECT user_
id
- FROM
auth_user_md5"
);
+$res = XDB::iterRow(
'SELECT p
id
+ FROM
profiles'
);
$i = 0;
$n = $res->total();
$i = 0;
$n = $res->total();
-while ($
u
id = $res->next()->fetchOneCell()) {
-
user_reindex($u
id);
+while ($
p
id = $res->next()->fetchOneCell()) {
+
Profile::rebuildSearchTokens($p
id);
printf("\r%u / %u", ++$i, $n);
}
printf("\r%u / %u", ++$i, $n);
}