mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-31938: fix syntax error in db upgrade & update plugin version
Also correct language class name.
This commit is contained in:
parent
02a9e4a7f3
commit
9953966213
@ -37,10 +37,11 @@ function xmldb_auth_cas_upgrade($oldversion) {
|
||||
set_config('start_tls', 0, 'auth/cas');
|
||||
}
|
||||
upgrade_plugin_savepoint(true, 2013052100, 'auth', 'cas');
|
||||
}
|
||||
|
||||
if ($oldversion < 2013091700) {
|
||||
// The value of the phpCAS language constants has changed from
|
||||
// 'langname' to 'CAS_Languages_langname'.
|
||||
// 'langname' to 'CAS_Languages_Langname'.
|
||||
if ($cas_language = get_config('auth/cas', 'language')) {
|
||||
set_config('language', 'CAS_Languages_'.ucfirst($cas_language), 'auth/cas');
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
$caslangconstprefix = 'PHPCAS_LANG_';
|
||||
$caslangprefixlen = strlen('CAS_Language_') + 1;
|
||||
$caslangprefixlen = strlen('CAS_Languages_');
|
||||
$CASLANGUAGES = array ();
|
||||
|
||||
$consts = get_defined_constants(true);
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2013052100; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->version = 2013091700; // The current plugin version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013050100; // Requires this Moodle version
|
||||
$plugin->component = 'auth_cas'; // Full name of the plugin (used for diagnostics)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user