mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fcf46da1c5
They now share most of the code again, this time via subclassing, and they share some code with enrol/ldap. They have also gained some features and a few fixes.
16 lines
401 B
PHP
16 lines
401 B
PHP
<?php
|
|
|
|
$caslangprefix = 'PHPCAS_LANG_';
|
|
$CASLANGUAGES = array ();
|
|
|
|
$consts = get_defined_constants(true);
|
|
foreach ($consts['user'] as $key => $value) {
|
|
if (substr($key, 0, strlen($caslangprefix)) == $caslangprefix) {
|
|
$CASLANGUAGES[$value] = $value;
|
|
}
|
|
}
|
|
if (empty($CASLANGUAGES)) {
|
|
$CASLANGUAGES = array ('english' => 'english',
|
|
'french' => 'french');
|
|
}
|