core

Changeset 24433

Show
Ignore:
Timestamp:
07/03/08 14:06:19 (6 months ago)
Author:
markwest
Message:

re-worked page identification logic - fixes #35 pageconfigurations.ini not working with directorybased shorturls

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/zikula-1.0/includes/pnTheme.class.php

    r24342 r24433  
    407407                if (pnConfigGetVar('shorturlstype') == 0) { 
    408408                    // remove the base uri, entrypoint, module name and, if it exists, the function name from the string 
    409                     if (pnConfigGetVar('shorturlsstripentrypoint')) { 
    410                         $qstring = str_replace(pnGetBaseURI()."/{$this->toplevelmodule}/", '/', $this->requesturi); 
    411                     } else { 
    412                         $entrypoint = pnConfigGetVar('entrypoint'); 
    413                         $qstring = str_replace(pnGetBaseURI()."/{$entrypoint}/{$this->toplevelmodule}/", '/', $this->requesturi); 
    414                     } 
    415                     $customargs = str_replace("/{$this->func}/", '/', $qstring); 
     409                    $customargs = str_replace(pnGetBaseURI(), '', $this->requesturi); 
     410                    $entrypoint = pnConfigGetVar('entrypoint'); 
     411                    $customargs = str_replace("/{$entrypoint}/", '/', $customargs); 
    416412                } else { 
    417413                    $extension = pnConfigGetVar('shorturlsext'); 
 
 
Powered by Trac
Design by Arcsin