Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-17094 Automatic language update can be disabled via $CFG->skiplan…

…gupgrade settings.
  • Loading branch information...
commit f00e69947715986fd5dc166426354cadbed8f216 1 parent b29f0b5
mudrd8mz authored
Showing with 8 additions and 0 deletions.
  1. +7 −0 admin/langimport.php
  2. +1 −0  lang/en_utf8/admin.php
View
7 admin/langimport.php
@@ -11,6 +11,13 @@
admin_externalpage_setup('langimport');
+ if (!empty($CFG->skiplangupgrade)) {
+ admin_externalpage_print_header();
+ print_box(get_string('langimportdisabled', 'admin'));
+ print_footer();
+ die;
+ }
+
$mode = optional_param('mode', 0, PARAM_INT); //phase
$pack = optional_param('pack', array(), PARAM_FILE); //pack to install
$displaylang = $pack;
View
1  lang/en_utf8/admin.php
@@ -436,6 +436,7 @@
$string['langmasterenglish'] = 'Master English pack';
$string['langlocalpackage'] = 'Local modifications';
$string['langimport'] = 'Language import utility';
+$string['langimportdisabled'] = 'Language import feature has been disabled. You have to update your language packs manually at the file-system level.';
$string['langimportsuccess'] = 'Language pack successfully upgraded';
$string['langlist'] = 'Languages on language menu';
$string['langmenu'] = 'Display language menu';
Please sign in to comment.
Something went wrong with that request. Please try again.