tweaks to directory registrations which don't seem to be happening, also downgrade any directory that claims to be a primary directory for RED_GLOBAL.

This commit is contained in:
friendica
2015-03-19 15:56:30 -07:00
parent 24ebaaf0f7
commit b1fd6c53a5
4 changed files with 18 additions and 9 deletions

View File

@@ -78,11 +78,11 @@ function regdir_init(&$a) {
}
else {
// We can put this in the sql without the condition after 31 march 2015 assuming
// We can put this in the sql without the condition after 31 april 2015 assuming
// most directory servers will have updated by then
// This just makes sure it happens if I forget
$sql_extra = ((datetime_convert() > datetime_convert('UTC','UTC','2015-03-31')) ? ' and site_valid = 1 ' : '' );
$sql_extra = ((datetime_convert() > datetime_convert('UTC','UTC','2015-04-31')) ? ' and site_valid = 1 ' : '' );
if($dirmode == DIRECTORY_MODE_STANDALONE) {
$r = array(array('site_url' => z_root()));
}