如果这些欢迎词, 不希望它们发送, 该怎么修改? 否则通篇都是这些欢迎词, 如果短时间很多人注册的话, 会影响市容的。
把下面這一段程式從 pLog/class/action/admin/adminaddblogaction.class.php 中拿掉:
// add a default category and a default post
$articleCategories = new ArticleCategories();
$articleCategory = new ArticleCategory( "General", "", $newBlogId, true );
$catId = $articleCategories->addArticleCategory( $articleCategory );
$config =& Config::getConfig();
$locale =& Locales::getLocale( $config->getValue( "default_locale" ));
$articleTopic = $locale->tr( "register_default_article_topic" );
$articleText = $locale->tr( "register_default_article_text" );
$article = new Article( $articleTopic,
$articleText,
Array( $catId ),
$this->_ownerId,
$newBlogId,
POST_STATUS_PUBLISHED,
0,
Array(),
"welcome" );
$t = new Timestamp();
$article->setDateObject( $t );
$articles = new Articles();
$articles->addArticle( $article );
另外,把下面這一段程式,從 pLog/class/summary/action/dofinishregister.class.php 中拿掉:
// add an article based on that category
$articleTopic = $locale->tr( "register_default_article_topic" );
$articleText = $locale->tr("register_default_article_text" );
$article = new Article( $articleTopic, $articleText, Array( $catId ), $userId, $newblogId, POST_STATUS_PUBLISHED, 0, Array(), "welcome" );
$article->setDateObject( new Timestamp()); // set it to the current date
$article->setCommentsEnabled( true ); // enable comments
$articles = new Articles();
$articles->addArticle( $article );
Mark