Merge remote branch 'origin/master' into account
[platal.git] / bin / banana.spoolgen.php
index 4fbc479..ac18c35 100755 (executable)
@@ -9,12 +9,12 @@
  ********************************************************************************/
 
 require_once 'connect.db.inc.php';
-require_once dirname(__FILE__).'/../include/banana/ml.inc.php';
+require_once dirname(__FILE__).'/../include/banana/forum.inc.php';
 ini_set('memory_limit', '128M');
 
 Banana::$mbox_helper = $globals->banana->mbox_helper;
 Banana::$spool_root = $globals->banana->spool_root;
-Banana::$nntp_host = "news://{$globals->banana->web_user}:{$globals->banana->web_pass}@{$globals->banana->server}:{$globals->banana->port}/";
+Banana::$nntp_host = ForumsBanana::buildURL();
 Banana::createAllSpool(array('NNTP', 'MLArchive'));
 system("chown -R www-data:www-data /var/spool/banana");
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: