Commit d07fea02 authored by Nigel McNie's avatar Nigel McNie
Browse files

A whole bunch of minor fixes pointed out by the content checker script

parent 699f3fe7
......@@ -31,6 +31,7 @@ define('SECTION_PLUGINNAME', 'account');
define('SECTION_PAGE', 'activity');
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('notifications'));
$types = get_records_assoc('activity_type', 'admin', 0, 'plugintype,pluginname,name', 'id,name,plugintype,pluginname');
$types = array_map(create_function('$a', '
......
......@@ -31,6 +31,7 @@ define('SECTION_PLUGINNAME', 'account');
define('SECTION_PAGE', 'activitypreferences');
require(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
define('TITLE', get_string('activityprefs'));
require_once('pieforms/pieform.php');
$activitytypes = get_records_array('activity_type', 'admin', 0);
......
......@@ -31,6 +31,7 @@ define('SECTION_PLUGINNAME', 'account');
define('SECTION_PAGE', 'preferences');
require(dirname(dirname(__FILE__)) . '/init.php');
define('TITLE', get_string('preferences'));
require_once('pieforms/pieform.php');
// load up user preferences
......
......@@ -28,6 +28,7 @@ define('INTERNAL', 1);
define('MENUITEM', 'settings/institutions');
require(dirname(dirname(__FILE__)) . '/init.php');
define('TITLE', get_string('institutionmembership'));
require_once('pieforms/pieform.php');
$institutions = get_records_assoc('institution', '', '', '', 'name,displayname,registerallowed');
......
......@@ -29,6 +29,7 @@ define('ADMIN', 1);
define('MENUITEM', 'adminhome');
require(dirname(dirname(__FILE__)).'/init.php');
define('TITLE', get_string('administration', 'admin'));
require(get_config('libroot') . 'upgrade.php');
$smarty = smarty();
......
......@@ -18,7 +18,7 @@
*
* @package mahara
* @subpackage admin
* @author Donal McMullan <richard.mansfield@catalyst.net.nz>
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
......
......@@ -29,6 +29,7 @@ define('ADMIN', 1);
define('INSTALLER', 1);
require(dirname(dirname(__FILE__)).'/init.php');
define('TITLE', get_string('upgrades', 'admin'));
require(get_config('libroot') . 'upgrade.php');
$smarty = smarty();
......
......@@ -18,7 +18,7 @@
*
* @package mahara
* @subpackage xmlrpc
* @author Donal McMullan <donal@catalyst.net.nz>
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
......
......@@ -18,7 +18,7 @@
*
* @package mahara
* @subpackage xmlrpc
* @author Donal McMullan <donal@catalyst.net.nz>
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
......
......@@ -18,7 +18,7 @@
*
* @package mahara
* @subpackage core
* @author Donal McMullan <donal@catalyst.net.nz>
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
......@@ -43,6 +43,7 @@
define('INTERNAL', 1);
define('PUBLIC', 1);
define('XMLRPC', 1);
define('TITLE', '');
require(dirname(__FILE__).'/lib.php');
// Catch anything that goes wrong in init.php
......
......@@ -75,4 +75,3 @@ echo json_encode(array(
'type' => $type));
?>
......@@ -53,4 +53,3 @@ else {
json_reply(null, get_string('compositedeleted', 'artefact.resume'));
?>
......@@ -75,4 +75,3 @@ if (isset($neworder)) {
json_reply(null, true);
?>
......@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @subpackage auth-internal
* @author Donal McMullan <donal@catalyst.net.nz>
* @subpackage auth-imap
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
......
<?php
/**
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2007 Catalyst IT Ltd (http://www.catalyst.net.nz)
* Copyright (C) 2006-2008 Catalyst IT Ltd (http://www.catalyst.net.nz)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
<?php
/**
* Authentication Plugin: Moodle Network Authentication
* Copyright (C) 2006-2007 Catalyst IT Ltd (http://www.catalyst.net.nz)
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2008 Catalyst IT Ltd (http://www.catalyst.net.nz)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -16,8 +16,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
* @package mahara
* @subpackage auth-xmlrpc
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
* This file incorporates work covered by the following copyright and
* permission notice:
......
<?php
/**
* Authentication Plugin: Moodle Network Authentication
* Copyright (C) 2006-2007 Catalyst IT Ltd (http://www.catalyst.net.nz)
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2008 Catalyst IT Ltd (http://www.catalyst.net.nz)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -17,8 +16,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
* @package mahara
* @subpackage auth-xmlrpc
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
* This file incorporates work covered by the following copyright and
* permission notice:
......
......@@ -18,7 +18,7 @@
*
* @package mahara
* @subpackage auth-internal
* @author Donal McMullan <donal@catalyst.net.nz>
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
*
......
......@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @subpackage group-interactions
* @subpackage core
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
......
......@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @subpackage group-interaction
* @subpackage interaction
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
......
Markdown is supported
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