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

Oscar Renalias oscar at renalias.net
Sun Sep 17 22:28:17 GMT 2006


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
>>
>> __________ Informaci�n de NOD32, revisi�n 1.1759 (20060916)  
>> __________
>>
>> Este mensaje ha sido analizado con  NOD32 antivirus system
>> http://www.nod32.com
>>
>>
>>
>>
>
> _______________________________________________
> 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