includes/paths.php
changeset 771 5e85d7db8ee5
parent 770 62fed244fa1c
child 793 c0724bf6039b
equal deleted inserted replaced
770:62fed244fa1c 771:5e85d7db8ee5
    36     $GLOBALS['paths'] =& $this;
    36     $GLOBALS['paths'] =& $this;
    37     $this->pages = Array();
    37     $this->pages = Array();
    38     
    38     
    39     // DEFINE NAMESPACES HERE
    39     // DEFINE NAMESPACES HERE
    40     // The key names should NOT EVER be changed, or Enano will be very broken
    40     // The key names should NOT EVER be changed, or Enano will be very broken
       
    41     $namespace_delimiter = ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') ) ? '.' : ':';
    41     $this->nslist = Array(
    42     $this->nslist = Array(
    42       'Article' =>'',
    43       'Article'  => '',
    43       'User'    =>'User:',
    44       'User'     => 'User' . $namespace_delimiter,
    44       'File'    =>'File:',
    45       'File'     => 'File' . $namespace_delimiter,
    45       'Help'    =>'Help:',
    46       'Help'     => 'Help' . $namespace_delimiter,
    46       'Admin'   =>'Admin:',
    47       'Admin'    => 'Admin' . $namespace_delimiter,
    47       'Special' =>'Special:',
    48       'Special'  => 'Special' . $namespace_delimiter,
    48       'System'  =>'Enano:',
    49       'System'   => 'Enano' . $namespace_delimiter,
    49       'Template'=>'Template:',
    50       'Template' => 'Template' . $namespace_delimiter,
    50       'Category'=>'Category:',
    51       'Category' => 'Category' . $namespace_delimiter,
    51       'API'=>'SystemAPI:',
    52       'API'      => 'SystemAPI' . $namespace_delimiter,
    52       'Project' =>sanitize_page_id(getConfig('site_name')).':',
    53       'Project'  => sanitize_page_id(getConfig('site_name')) . $namespace_delimiter,
    53       );
    54       );
    54     
    55     
    55     // ACL types
    56     // ACL types
    56     // These can also be added from within plugins
    57     // These can also be added from within plugins
    57     
    58