|
@@ 1510-1516 (lines=7) @@
|
| 1507 |
|
$this->ui_page = array( $this->action ); |
| 1508 |
|
if ( 'add' === $this->action && ! in_array( $this->action, $this->actions_disabled ) ) { |
| 1509 |
|
$this->ui_page[] = 'form'; |
| 1510 |
|
if ( 'create' === $this->do && $this->save && ! in_array( $this->do, $this->actions_disabled ) && ! empty( $_POST ) ) { |
| 1511 |
|
$this->ui_page[] = $this->do; |
| 1512 |
|
$this->save( true ); |
| 1513 |
|
$this->manage(); |
| 1514 |
|
} else { |
| 1515 |
|
$this->add(); |
| 1516 |
|
} |
| 1517 |
|
} elseif ( ( 'edit' === $this->action && ! in_array( $this->action, $this->actions_disabled ) ) || ( 'duplicate' === $this->action && ! in_array( $this->action, $this->actions_disabled ) ) ) { |
| 1518 |
|
$this->ui_page[] = 'form'; |
| 1519 |
|
if ( 'save' === $this->do && $this->save && ! empty( $_POST ) ) { |
|
@@ 1536-1540 (lines=5) @@
|
| 1533 |
|
$this->ui_page[] = $this->do; |
| 1534 |
|
$this->save(); |
| 1535 |
|
$this->manage(); |
| 1536 |
|
} elseif ( 'create' === $this->do && $this->save && ! in_array( $this->do, $this->actions_disabled ) && ! empty( $_POST ) ) { |
| 1537 |
|
$this->ui_page[] = $this->do; |
| 1538 |
|
$this->save( true ); |
| 1539 |
|
$this->manage(); |
| 1540 |
|
} elseif ( 'view' === $this->action && ! in_array( $this->action, $this->actions_disabled ) ) { |
| 1541 |
|
$this->view(); |
| 1542 |
|
} else { |
| 1543 |
|
if ( isset( $this->actions_custom[ $this->action ] ) ) { |