root/releases/0.9rc1/mod/generic_comments/action_redirection.php

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 //    ELGG comments perform-action-then-redirect page
4
5 // Load Elgg framework
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 ?>
Note: See TracBrowser for help on using the browser.