[pLog-svn] r3516 - plog/branches/lifetype-1.0.5/class/action/admin

Jon Daley plogworld at jon.limedaley.com
Sat Jun 3 20:07:44 GMT 2006


 	I just meant that my response on the forum to the guy who asked 
about this was wrong, since I thought it had already been done.  If I 
hadn't thought that, I would have just told him that it didn't work yet, 
and could have saved some time.

  On Sat, 3 Jun 2006, Mark Wu wrote:

> Hi Jon:
>
> :P What are you sorry for? Did you mean it supposed to be fixed in long time
> ago?
>
> Mark
>
>> -----Original Message-----
>> From: plog-svn-bounces at devel.lifetype.net
>> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
>> Sent: Saturday, June 03, 2006 8:16 PM
>> To: plog-svn at devel.lifetype.net
>> Subject: Re: [pLog-svn] r3516 -
>> plog/branches/lifetype-1.0.5/class/action/admin
>>
>>  	That's funny.  I thought this had already been done.
>> Sorry for confusing the issue.
>>
>> On Sat, 3 Jun 2006, mark at devel.lifetype.net wrote:
>>
>>> Author: mark
>>> Date: 2006-06-03 05:04:49 +0000 (Sat, 03 Jun 2006) New
>> Revision: 3516
>>>
>>> Modified:
>>>
>>>
>> plog/branches/lifetype-1.0.5/class/action/admin/adminaddblogaction.cla
>>> ss.php
>>> Log:
>>> Fixed the bug here:
>>>
>>> http://bugs.lifetype.net/view.php?id=919
>>>
>>> Modified:
>>>
>> plog/branches/lifetype-1.0.5/class/action/admin/adminaddblogaction.cla
>>> ss.php
>>> ===================================================================
>>> ---
>> plog/branches/lifetype-1.0.5/class/action/admin/adminaddblogac
>> tion.class.php	2006-06-03 05:02:02 UTC (rev 3515)
>>> +++
>> plog/branches/lifetype-1.0.5/class/action/admin/adminaddblogac
>> tion.class.php	2006-06-03 05:04:49 UTC (rev 3516)
>>> @@ -63,12 +63,14 @@
>>>                 return false;
>>>             }
>>>
>>> +            // 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,
>>>
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://devel.lifetype.net/mailman/listinfo/plog-svn
>>>
>>
>> **************************************
>> Jon Daley
>> http://jon.limedaley.com/
>>
>> God is holy.  You are not.
>> -- Harvest 2000
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>

**************************************
Jon Daley
http://jon.limedaley.com/

Any tool, when dropped, will roll into the least accessible corner.
-- Anthony's Law of the Workshop


More information about the pLog-svn mailing list