includes/paths.php
changeset 310 78cb09a23e69
parent 296 a21faa57e6c6
child 318 eec2dfd2f0a3
equal deleted inserted replaced
309:cf26ccfd99d8 310:78cb09a23e69
    26     $GLOBALS['paths'] =& $this;
    26     $GLOBALS['paths'] =& $this;
    27     $this->pages = Array();
    27     $this->pages = Array();
    28     
    28     
    29     // DEFINE NAMESPACES HERE
    29     // DEFINE NAMESPACES HERE
    30     // The key names should NOT EVER be changed, or Enano will be very broken
    30     // The key names should NOT EVER be changed, or Enano will be very broken
       
    31     $namespace_delimiter = ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') ) ? '.' : ':';
    31     $this->nslist = Array(
    32     $this->nslist = Array(
    32       'Article' =>'',
    33       'Article'  => '',
    33       'User'    =>'User:',
    34       'User'     => 'User' . $namespace_delimiter,
    34       'File'    =>'File:',
    35       'File'     => 'File' . $namespace_delimiter,
    35       'Help'    =>'Help:',
    36       'Help'     => 'Help' . $namespace_delimiter,
    36       'Admin'   =>'Admin:',
    37       'Admin'    => 'Admin' . $namespace_delimiter,
    37       'Special' =>'Special:',
    38       'Special'  => 'Special' . $namespace_delimiter,
    38       'System'  =>'Enano:',
    39       'System'   => 'Enano' . $namespace_delimiter,
    39       'Template'=>'Template:',
    40       'Template' => 'Template' . $namespace_delimiter,
    40       'Category'=>'Category:',
    41       'Category' => 'Category' . $namespace_delimiter,
    41       'Anonymous'=>'PhysicalRedirect:',
    42       'Anonymous'=> 'PhysicalRedirect' . $namespace_delimiter,
    42       'Project' =>sanitize_page_id(getConfig('site_name')).':',
    43       'Project'  => sanitize_page_id(getConfig('site_name')) . $namespace_delimiter,
    43       );
    44       );
    44     
    45     
    45     // ACL types
    46     // ACL types
    46     // These can also be added from within plugins
    47     // These can also be added from within plugins
    47     
    48