[pLog-svn] r3519 - plog/trunk/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Sat Jun 3 07:48:36 GMT 2006
Author: mark
Date: 2006-06-03 07:48:35 +0000 (Sat, 03 Jun 2006)
New Revision: 3519
Modified:
plog/trunk/class/action/admin/adminaddblogaction.class.php
Log:
Fixed the bug http://bugs.lifetype.net/view.php?id=919
Modified: plog/trunk/class/action/admin/adminaddblogaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddblogaction.class.php 2006-06-03 06:59:49 UTC (rev 3518)
+++ plog/trunk/class/action/admin/adminaddblogaction.class.php 2006-06-03 07:48:35 UTC (rev 3519)
@@ -78,13 +78,15 @@
else {
$globalArticleCategoryId = 0;
}
-
+
+ // Get the defaul locale object
+ $config =& Config::getConfig();
+ $locale =& Locales::getLocale( $config->getValue( "default_locale" ));
+
// add a default category and a default post
$articleCategories = new ArticleCategories();
- $articleCategory = new ArticleCategory( "General", "", $newBlogId, true );
+ $articleCategory = new ArticleCategory( $locale->tr( "register_default_category" ), "", $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,
More information about the pLog-svn
mailing list