Commit 531180d1 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

more <title> tag work

parent ac4db857
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'myownedcommunities'); define('SUBMENUITEM', 'myownedcommunities');
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once('pieforms/pieform.php'); require_once('pieforms/pieform.php');
define('TITLE', get_string('createcommunity'));
$prefix = get_config('dbprefix'); $prefix = get_config('dbprefix');
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'myownedcommunities'); define('SUBMENUITEM', 'myownedcommunities');
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once('pieforms/pieform.php'); require_once('pieforms/pieform.php');
define('TITLE', get_string('editcommunity'));
$id = param_integer('id'); $id = param_integer('id');
$prefix = get_config('dbprefix'); $prefix = get_config('dbprefix');
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'myownedcommunities'); define('SUBMENUITEM', 'myownedcommunities');
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('myownedcommunities'));
$viewurl = get_config('wwwroot') . 'contacts/communities/view.php?id='; $viewurl = get_config('wwwroot') . 'contacts/communities/view.php?id=';
$editurl = get_config('wwwroot') . 'contacts/communities/edit.php?id='; $editurl = get_config('wwwroot') . 'contacts/communities/edit.php?id=';
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'mygroups'); define('SUBMENUITEM', 'mygroups');
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once('pieforms/pieform.php'); require_once('pieforms/pieform.php');
define('TITLE', get_string('creategroup'));
$creategroup = pieform(array( $creategroup = pieform(array(
'name' => 'creategroup', 'name' => 'creategroup',
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'mygroups'); define('SUBMENUITEM', 'mygroups');
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once('pieforms/pieform.php'); require_once('pieforms/pieform.php');
define('TITLE', get_string('editgroup'));
$id = param_integer('id',null); $id = param_integer('id',null);
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'mygroups'); define('SUBMENUITEM', 'mygroups');
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('mygroups'));
$javascript = <<<JAVASCRIPT $javascript = <<<JAVASCRIPT
var grouplist = new TableRenderer( var grouplist = new TableRenderer(
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('MENUITEM', 'mycontacts'); define('MENUITEM', 'mycontacts');
define('SUBMENUITEM', 'myfriends'); define('SUBMENUITEM', 'myfriends');
require(dirname(dirname(__FILE__)) . '/init.php'); require(dirname(dirname(__FILE__)) . '/init.php');
define('TITLE', get_string('myfriends'));
$wwwroot = get_config('wwwroot'); $wwwroot = get_config('wwwroot');
$profileurl = $wwwroot . 'thumb.php?type=user&id='; $profileurl = $wwwroot . 'thumb.php?type=user&id=';
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*/ */
define('INTERNAL', 1); define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php'); require(dirname(dirname(__FILE__)) . '/init.php');
$result = array(); $result = array();
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*/ */
define('INTERNAL', 1); define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php'); require(dirname(dirname(__FILE__)) . '/init.php');
require('searchlib.php'); require('searchlib.php');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment