root/releases/elgg0.8rc2/_invite/index.php

Revision 965, 1.0 kB (checked in by ben, 2 years ago)

Removing the second context definition on /_invite/index.php

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     //    ELGG invite-a-friend page
4
5     // Run includes
6         require_once(dirname(dirname(__FILE__))."/includes.php");
7         
8         run("profile:init");
9         run("invite:init");
10         
11         define("context", "network");
12         templates_page_setup();
13
14     // You must be logged on to view this!
15         if (logged_on && $CFG->publicinvite == true) {
16             
17             $title = __gettext("Invite a Friend");
18             
19             $body = run("content:invite:invite");
20             $body .= run("invite:invite");
21             
22             $body = templates_draw(array(
23                             'context' => 'contentholder',
24                             'title' => $title,
25                             'body' => $body
26                         )
27                         );
28             
29             echo templates_page_draw( array(
30                             $title, $body
31                         )
32                         );
33         } else {
34             header("Location: " . $CFG->wwwroot);
35         }
36
37 ?>
Note: See TracBrowser for help on using the browser.