includes/paths.php
changeset 982 bd349add2697
parent 979 aafb9f6806c9
child 1053 bdbb49cf6f1b
equal deleted inserted replaced
981:888502d761b4 982:bd349add2697
   208       }
   208       }
   209       else
   209       else
   210       {
   210       {
   211         $title = basename($_SERVER['SCRIPT_NAME']);
   211         $title = basename($_SERVER['SCRIPT_NAME']);
   212       }
   212       }
   213       if ( scriptPath != '' )
   213       $base_uri = scriptPath == '' ? ltrim($_SERVER['SCRIPT_NAME'], '/') : str_replace( scriptPath . '/', '', $_SERVER['SCRIPT_NAME'] );
   214         $base_uri = str_replace( scriptPath . '/', '', $_SERVER['SCRIPT_NAME'] );
       
   215       
   214       
   216       $this->page = $this->nslist['API'] . sanitize_page_id($base_uri);
   215       $this->page = $this->nslist['API'] . sanitize_page_id($base_uri);
   217       $this->fullpage = $this->nslist['API'] . sanitize_page_id($base_uri);
   216       $this->fullpage = $this->nslist['API'] . sanitize_page_id($base_uri);
   218       $this->namespace = 'API';
   217       $this->namespace = 'API';
   219       $this->cpage = array(
   218       $this->cpage = array(