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