equal
deleted
inserted
replaced
311 |
311 |
312 eval( '?>' . $text ); |
312 eval( '?>' . $text ); |
313 |
313 |
314 $this->footer(); |
314 $this->footer(); |
315 } |
315 } |
316 else if ( $this->namespace == 'Anonymous' ) |
316 else if ( $this->namespace == 'API' ) |
317 { |
317 { |
318 if ( $this->send_headers ) |
318 if ( $this->send_headers ) |
319 { |
319 { |
320 $template->init_vars($this); |
320 $template->init_vars($this); |
321 } |
321 } |
564 } |
564 } |
565 |
565 |
566 // It's not in there. Perform validation. |
566 // It's not in there. Perform validation. |
567 |
567 |
568 // We can't create special, admin, or external pages. |
568 // We can't create special, admin, or external pages. |
569 if ( $this->namespace == 'Special' || $this->namespace == 'Admin' || $this->namespace == 'Anonymous' ) |
569 if ( $this->namespace == 'Special' || $this->namespace == 'Admin' || $this->namespace == 'API' ) |
570 { |
570 { |
571 $this->raise_error($lang->get('pagetools_create_err_nodb_namespace')); |
571 $this->raise_error($lang->get('pagetools_create_err_nodb_namespace')); |
572 return false; |
572 return false; |
573 } |
573 } |
574 |
574 |