equal
deleted
inserted
replaced
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, |