|
Revision 1117, 395 bytes
(checked in by icewing, 2 years ago)
|
Marcus Povey <marcus@dushka.co.uk>
* Support to display the object you're commenting while commenting.
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
@require_once("../../includes.php"); |
|---|
| 7 |
|
|---|
| 8 |
run("comments:init"); |
|---|
| 9 |
|
|---|
| 10 |
global $messages; |
|---|
| 11 |
|
|---|
| 12 |
if (isset($messages) && sizeof($messages) > 0) { |
|---|
| 13 |
$_SESSION['messages'] = $messages; |
|---|
| 14 |
} |
|---|
| 15 |
|
|---|
| 16 |
if (defined('redirect_url')) { |
|---|
| 17 |
header("Location: " . redirect_url); |
|---|
| 18 |
} else { |
|---|
| 19 |
header("Location: " . url); |
|---|
| 20 |
} |
|---|
| 21 |
|
|---|
| 22 |
?> |
|---|