|
@@ 1321-1327 (lines=7) @@
|
| 1318 |
|
$this->ui_page = array( $this->action ); |
| 1319 |
|
if ( 'add' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) { |
| 1320 |
|
$this->ui_page[] = 'form'; |
| 1321 |
|
if ( 'create' == $this->do && $this->save && !in_array( $this->do, $this->actions_disabled ) && !empty( $_POST ) ) { |
| 1322 |
|
$this->ui_page[] = $this->do; |
| 1323 |
|
$this->save( true ); |
| 1324 |
|
$this->manage(); |
| 1325 |
|
} |
| 1326 |
|
else |
| 1327 |
|
$this->add(); |
| 1328 |
|
} |
| 1329 |
|
elseif ( ( 'edit' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) || ( 'duplicate' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) ) { |
| 1330 |
|
$this->ui_page[] = 'form'; |
|
@@ 1351-1355 (lines=5) @@
|
| 1348 |
|
$this->save(); |
| 1349 |
|
$this->manage(); |
| 1350 |
|
} |
| 1351 |
|
elseif ( 'create' == $this->do && $this->save && !in_array( $this->do, $this->actions_disabled ) && !empty( $_POST ) ) { |
| 1352 |
|
$this->ui_page[] = $this->do; |
| 1353 |
|
$this->save( true ); |
| 1354 |
|
$this->manage(); |
| 1355 |
|
} |
| 1356 |
|
elseif ( 'view' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) |
| 1357 |
|
$this->view(); |
| 1358 |
|
else { |