// -- create page (or not) -----------------------------------------
if ( $text !== null ) {
- if ( $text === '' ) {
- // can't create an empty page, so create it with some content
- $this->doApiRequestWithToken( array(
- 'action' => 'edit',
- 'title' => $name,
- 'text' => '(dummy)', ) );
- }
-
list( $re ) = $this->doApiRequestWithToken( array(
'action' => 'edit',
'title' => $name,