From 422fa36e363d22316ae645982768e462affb403f Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 23 Mar 2015 13:14:00 -0500 Subject: [PATCH] Remove link language file - refs #4467 --- main/course_notice/index.php | 2 +- main/cron/lang/langstats.php | 2 +- main/cron/lang/langstats_file_builder.php | 1 - main/forum/index.php | 2 +- main/gradebook/gradebook_edit_link.php | 2 +- main/link/index.php | 2 +- main/link/link.php | 2 +- tests/main/inc/lib/internationalization.lib.test.php | 1 - 8 files changed, 6 insertions(+), 8 deletions(-) diff --git a/main/course_notice/index.php b/main/course_notice/index.php index afe78a98a4..e49c31a354 100755 --- a/main/course_notice/index.php +++ b/main/course_notice/index.php @@ -7,7 +7,7 @@ * @author Laurent Opprecht for the Univesity of Geneva */ -$language_file = array('document', 'link', 'admin'); +$language_file = array('document', 'admin'); require_once dirname(__FILE__) . '/../inc/global.inc.php'; $controller = CourseNoticeController::instance(); diff --git a/main/cron/lang/langstats.php b/main/cron/lang/langstats.php index 06a5317567..2686ff7c6a 100755 --- a/main/cron/lang/langstats.php +++ b/main/cron/lang/langstats.php @@ -17,7 +17,7 @@ $language_file = array( 'help', 'reservation', 'hotspot', 'blog', 'scormdocument', 'coursebackup', 'index', 'install', 'shibboleth', -'learnpath', 'course_info', 'link', 'survey', +'learnpath', 'course_info', 'survey', 'courses', 'md_document', 'tracking', 'create_course', 'trad4all', 'document', 'userInfo', 'dropbox', 'videoconf', 'exercice', 'wiki', diff --git a/main/cron/lang/langstats_file_builder.php b/main/cron/lang/langstats_file_builder.php index 591c4c09ff..50a49aea7b 100755 --- a/main/cron/lang/langstats_file_builder.php +++ b/main/cron/lang/langstats_file_builder.php @@ -30,7 +30,6 @@ $language_file = array( 'index', 'install', 'learnpath', -'link', 'md_document', 'registration', 'reservation', diff --git a/main/forum/index.php b/main/forum/index.php index 223779f25b..358b634510 100755 --- a/main/forum/index.php +++ b/main/forum/index.php @@ -24,7 +24,7 @@ use \ChamiloSession as Session; // Name of the language file that needs to be included. -$language_file = array('forum', 'link'); +$language_file = array('forum'); // Including the global initialization file. require_once '../inc/global.inc.php'; diff --git a/main/gradebook/gradebook_edit_link.php b/main/gradebook/gradebook_edit_link.php index 6ceda170da..3db7c10b88 100755 --- a/main/gradebook/gradebook_edit_link.php +++ b/main/gradebook/gradebook_edit_link.php @@ -6,7 +6,7 @@ * @package chamilo.gradebook */ -$language_file = array('gradebook', 'exercice', 'link'); +$language_file = array('gradebook', 'exercice'); //$cidReset = true; require_once '../inc/global.inc.php'; diff --git a/main/link/index.php b/main/link/index.php index 3ef3e2e796..3c1b513e2b 100755 --- a/main/link/index.php +++ b/main/link/index.php @@ -9,7 +9,7 @@ */ namespace Link; -$language_file = array('link', 'admin'); +$language_file = array('admin'); require_once '../inc/global.inc.php'; Controller::instance()->run(); diff --git a/main/link/link.php b/main/link/link.php index cd075c56cd..895dac4e55 100755 --- a/main/link/link.php +++ b/main/link/link.php @@ -22,7 +22,7 @@ /* INIT SECTION */ // Language files that need to be included -$language_file = array('link', 'admin'); +$language_file = array('admin'); // Including libraries require_once '../inc/global.inc.php'; diff --git a/tests/main/inc/lib/internationalization.lib.test.php b/tests/main/inc/lib/internationalization.lib.test.php index cdffd17046..0e5ce08a99 100755 --- a/tests/main/inc/lib/internationalization.lib.test.php +++ b/tests/main/inc/lib/internationalization.lib.test.php @@ -1412,7 +1412,6 @@ class TestInternationalization extends UnitTestCase { 'index.inc.php', 'install.inc.php', 'learnpath.inc.php', - 'link.inc.php', 'md_document.inc.php', 'messages.inc.php', 'registration.inc.php',