Removing require_once for "mail.lib.inc.php"

skala
Julio Montoya 12 years ago
parent f4f0ea6397
commit c6628b1d14
  1. 1
      main/inc/lib/main_api.lib.php
  2. 2
      main/social/group_edit.php
  3. 3
      main/social/groups.php
  4. 1
      main/survey/survey_invitation.php
  5. 5
      main/user/user_add.php
  6. 13
      main/webservices/registration.soap.php
  7. 4
      main/wiki/index.php
  8. 497
      main/work/work.php

@ -5487,7 +5487,6 @@ function api_sql_query($query, $file = '', $line = 0) {
}
/**
* @deprecated 25-JAN-2010: See api_mail() and api_mail_html(), mail.lib.inc.php
*
* Send an email.
*

@ -22,8 +22,6 @@ $this_section = SECTION_SOCIAL;
$libpath = api_get_path(LIBRARY_PATH);
require_once $libpath.'fileManage.lib.php';
require_once $libpath.'fileUpload.lib.php';
require_once $libpath.'group_portal_manager.lib.php';
require_once $libpath.'mail.lib.inc.php';
$htmlHeadXtra[] = '<script>
var textarea = "";

@ -14,9 +14,6 @@ if (api_get_setting('allow_social_tool') !='true') {
api_not_allowed();
}
require_once api_get_path(LIBRARY_PATH).'group_portal_manager.lib.php';
require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
$this_section = SECTION_SOCIAL;
// prepare anchor for message group topic

@ -16,7 +16,6 @@ require '../inc/global.inc.php';
// Including additional libraries
require_once 'survey.lib.php';
require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
/** @todo this has to be moved to a more appropriate place (after the display_header of the code) */
if (!api_is_allowed_to_edit(false, true)) {

@ -12,9 +12,8 @@
// name of the language file that needs to be included
$language_file="registration";
include("../inc/global.inc.php");
require_once(api_get_path(INCLUDE_PATH).'lib/mail.lib.inc.php');
$this_section=SECTION_COURSES;
require_once "../inc/global.inc.php";
$this_section = SECTION_COURSES;
if (! ($is_courseAdmin || $is_platformAdmin)) api_not_allowed(true);

@ -8,7 +8,6 @@ $libpath = api_get_path(LIBRARY_PATH);
require_once $libpath.'nusoap/nusoap.php';
require_once $libpath.'fileManage.lib.php';
require_once $libpath.'fileUpload.lib.php';
require_once api_get_path(INCLUDE_PATH).'lib/mail.lib.inc.php';
$debug = false;
@ -2878,7 +2877,7 @@ function WSEditCourseDescription($params) {
$res_check_id = Database::query($sql_check_id);
if (Database::num_rows($res_check_id) > 0) {
$sql = "UPDATE $t_course_desc SET title='$course_desc_title', content = '$course_desc_content'
$sql = "UPDATE $t_course_desc SET title='$course_desc_title', content = '$course_desc_content'
WHERE c_id = {$course_info['real_id']} AND id = '".$course_desc_id."'";
Database::query($sql);
} else {
@ -3133,10 +3132,10 @@ function WSCreateSession($params) {
foreach ($sessions_params as $session_param) {
$name = trim($session_param['name']);
$access_start_date = $session_param['access_start_date'];
$access_end_date = $session_param['access_end_date'];
/*
$year_start = intval($session_param['year_start']);
$month_start = intval($session_param['month_start']);
@ -3160,7 +3159,7 @@ function WSCreateSession($params) {
$results[] = 0;
continue;
}
if (empty($name)) {
$results[] = 0;
continue;
@ -3187,9 +3186,9 @@ function WSCreateSession($params) {
'access_end_date' => $access_end_date,
);
$id_session = SessionManager::add($params);
//Database::query("INSERT INTO $tbl_session(name,date_start,date_end,id_coach,session_admin_id, VALUES('".addslashes($name)."','$date_start','$date_end','$id_coach',".intval($_user['user_id']).",".$nb_days_acess_before.", ".$nb_days_acess_after.")");
//$id_session = Database::insert_id();
// Save new fieldlabel into course_field table.

@ -20,10 +20,6 @@ $this_section = SECTION_COURSES;
$current_course_tool = TOOL_WIKI;
// including additional library scripts
require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php';
require_once 'wiki.inc.php';
$course_id = api_get_course_int_id();

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save