|
Revision 45, 449 bytes
(checked in by sven, 3 years ago)
|
dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// If a post ID has been specified, edit a specific post - otherwise create a new one |
|---|
| 6 |
|
|---|
| 7 |
if (isset($_REQUEST['weblog_post_id']) && isset($_REQUEST['action']) && ($_REQUEST['action'] == "edit")) { |
|---|
| 8 |
|
|---|
| 9 |
$id = (int) $_REQUEST['weblog_post_id']; |
|---|
| 10 |
$run_result .= run("weblogs:posts:edit",$id); |
|---|
| 11 |
|
|---|
| 12 |
} else { |
|---|
| 13 |
|
|---|
| 14 |
$run_result .= run("weblogs:posts:add"); |
|---|
| 15 |
|
|---|
| 16 |
} |
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
?> |
|---|