Skip to content

Commit

Permalink
Moves and renames announcements.inc.php into inc/lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 16, 2015
1 parent 07366a3 commit bcacb38
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions main/announcements/announcements.php
Expand Up @@ -53,11 +53,6 @@
$tbl_announcement = Database::get_course_table(TABLE_ANNOUNCEMENT);
$tbl_item_property = Database::get_course_table(TABLE_ITEM_PROPERTY);

/* Libraries */

$lib = api_get_path(LIBRARY_PATH); //avoid useless function calls
require_once 'announcements.inc.php';

$course_id = api_get_course_int_id();
$_course = api_get_course_info();

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion main/social/profile.php
Expand Up @@ -108,7 +108,6 @@

$libpath = api_get_path(LIBRARY_PATH);
require_once api_get_path(SYS_CODE_PATH).'calendar/myagenda.inc.php';
require_once api_get_path(SYS_CODE_PATH).'announcements/announcements.inc.php';

require_once $libpath.'magpierss/rss_fetch.inc';
$ajax_url = api_get_path(WEB_AJAX_PATH).'message.ajax.php';
Expand Down
2 changes: 0 additions & 2 deletions main/webservices/cm_webservice_announcements.php
Expand Up @@ -3,8 +3,6 @@

require_once(dirname(__FILE__).'/../inc/global.inc.php');
$libpath = api_get_path(LIBRARY_PATH);

require_once(dirname(__FILE__).'/../announcements/announcements.inc.php');
require_once(dirname(__FILE__).'/cm_webservice.php');

/**
Expand Down
4 changes: 1 addition & 3 deletions tests/main/announcements/announcements.inc.test.php
@@ -1,10 +1,8 @@
<?php
/* For licensing terms, see /license.txt */

require_once api_get_path(SYS_CODE_PATH).'announcements/announcements.inc.php';
require_once api_get_path(LIBRARY_PATH).'course.lib.php';
require_once api_get_path(LIBRARY_PATH).'add_course.lib.inc.php';
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';


class TestAnnouncements extends UnitTestCase {

Expand Down

0 comments on commit bcacb38

Please sign in to comment.