[pLog-svn] r3981 - plog/branches/lifetype-1.1.1/class/net

BalearWeb balearweb at balearweb.com
Mon Sep 18 06:35:16 GMT 2006


I think it is perfect now.

Thanks

Elena

Oscar Renalias wrote:
> Sorry, my mistake. Can you get the new version of the file and try again?
>
> On 18 Sep 2006, at 01:16, BalearWeb wrote:
>
>> There is only one thing that is not very nice.
>> Now, in the list of blogs 
>> http://bloc.balearweb.net/summary.php?op=BlogList
>> and everywhere, the link of each blog also includes
>> blog/X instead of being http://sub.domain.com
>>
>> Elena
>>
>> oscar at devel.lifetype.net wrote:
>>> Author: oscar
>>> Date: 2006-09-17 21:18:24 +0000 (Sun, 17 Sep 2006)
>>> New Revision: 3981
>>>
>>> Modified:
>>>    
>>> plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php
>>> Log:
>>> Working fix for the problem reported by Elena when using subdomains 
>>> and custom URLs. The format of paged URLs when using subdomains is 
>>> now http://whatever.host.com/blog/X/page/Y, which is kind of ugly 
>>> but it works. Subdomains were not ever meant to be used with this 
>>> kind of URLs anyway...
>>>
>>> Modified: 
>>> plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php
>>> ===================================================================
>>> --- 
>>> plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php    
>>> 2006-09-17 20:51:57 UTC (rev 3980)
>>> +++ 
>>> plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php    
>>> 2006-09-17 21:18:24 UTC (rev 3981)
>>> @@ -150,11 +150,11 @@
>>>           *
>>>           * @return Returns the url where the blog is running.
>>>           */
>>> -        function blogLink( $blogInfo = null )
>>> +        function blogLink( $blogInfo = null, 
>>> $ignoreSubdomainSettings = true )
>>>          {
>>>            $config =& Config::getConfig();                     // if 
>>> subdomains are enabled, there is no need to do much more here... 
>>> -          if( $config->getValue( "subdomains_enabled" )) {
>>> +          if( $config->getValue( "subdomains_enabled" ) && 
>>> !$ignoreSubdomainSettings ) {
>>>              $link = $this->getBaseUrl();
>>>            }
>>>            else {
>>> @@ -382,12 +382,10 @@
>>>              }
>>>              else {
>>>                  // if none of the above, we should at least get a 
>>> link to the blog!
>>> -                $url = $this->blogLink();
>>> +                $url = $this->blogLink( null, true );
>>>              }       
>>>             
>>> -            $pageFormat = "/page/";
>>> -           
>>> -            return( $url.$pageFormat );
>>> +            return( $url."/page/" );
>>>          }
>>>         
>>>          /**
>>>
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://devel.lifetype.net/mailman/listinfo/plog-svn 



More information about the pLog-svn mailing list