[pLog-svn] r2469 - plog/branches/plog-1.0.2/class/summary/action

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Sep 14 20:55:55 GMT 2005


Author: oscar
Date: 2005-09-14 20:55:54 +0000 (Wed, 14 Sep 2005)
New Revision: 2469

Modified:
   plog/branches/plog-1.0.2/class/summary/action/dofinishregister.class.php
Log:
now new blogs created via the admin will get the "welcome!" post in the language that was selected during the registration process, instead of the default language used in the summary.


Modified: plog/branches/plog-1.0.2/class/summary/action/dofinishregister.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/summary/action/dofinishregister.class.php	2005-09-14 20:52:42 UTC (rev 2468)
+++ plog/branches/plog-1.0.2/class/summary/action/dofinishregister.class.php	2005-09-14 20:55:54 UTC (rev 2469)
@@ -125,12 +125,12 @@
             // if the blog was created, we can add some basic information
             // add a category
             $articleCategories = new ArticleCategories();
-            $articleCategory = new ArticleCategory( $this->_locale->tr("register_default_category" ), "", $newblogId, true );
+            $articleCategory = new ArticleCategory( $locale->tr("register_default_category" ), "", $newblogId, true );
             $catId = $articleCategories->addArticleCategory( $articleCategory );
 
             // add an article based on that category
-            $articleTopic = $this->_locale->tr( "register_default_article_topic" );
-            $articleText  = $this->_locale->tr("register_default_article_text" );
+            $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




More information about the pLog-svn mailing list