MDL-20065 Fixing a wierd typo RESOURCE_LEGACYYFILES_DONE ==> RESOURCELIB_LEGACYFILES_DONE

This commit is contained in:
Martin Dougiamas 2010-06-01 03:53:15 +00:00
parent adb7032b98
commit 42439c0572
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ define('RESOURCELIB_DISPLAY_POPUP', 6);
/** Legacy files not needed or new resource */
define('RESOURCELIB_LEGACYFILES_NO', 0);
/** Legacy files conversion marked as completed */
define('RESOURCE_LEGACYYFILES_DONE', 1);
define('RESOURCELIB_LEGACYFILES_DONE', 1);
/** Legacy files conversion in progress*/
define('RESOURCELIB_LEGACYFILES_ACTIVE', 2);

View File

@ -100,7 +100,7 @@ class mod_page_mod_form extends moodleform_mod {
// add legacy files flag only if used
if (isset($this->current->legacyfiles) and $this->current->legacyfiles != RESOURCELIB_LEGACYFILES_NO) {
$options = array(RESOURCE_LEGACYYFILES_DONE => get_string('legacyfilesdone', 'page'),
$options = array(RESOURCELIB_LEGACYFILES_DONE => get_string('legacyfilesdone', 'page'),
RESOURCELIB_LEGACYFILES_ACTIVE => get_string('legacyfilesactive', 'page'));
$mform->addElement('select', 'legacyfiles', get_string('legacyfiles', 'page'), $options);
$mform->setAdvanced('legacyfiles', 1);

View File

@ -137,7 +137,7 @@ class mod_resource_mod_form extends moodleform_mod {
// add legacy files flag only if used
if (isset($this->current->legacyfiles) and $this->current->legacyfiles != RESOURCELIB_LEGACYFILES_NO) {
$options = array(RESOURCE_LEGACYYFILES_DONE => get_string('legacyfilesdone', 'resource'),
$options = array(RESOURCELIB_LEGACYFILES_DONE => get_string('legacyfilesdone', 'resource'),
RESOURCELIB_LEGACYFILES_ACTIVE => get_string('legacyfilesactive', 'resource'));
$mform->addElement('select', 'legacyfiles', get_string('legacyfiles', 'resource'), $options);
$mform->setAdvanced('legacyfiles', 1);