[moodle] / moodle / admin / index.php Repository:

Diff of /moodle/admin/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.400, Mon Aug 10 12:53:24 2009 WST revision 1.401, Tue Aug 18 12:28:41 2009 WST

By nicolasconnault:

MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify

# Line 145  Line 145 
145          if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {          if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {
146              print_upgrade_reload("index.php?agreelicense=1&lang=$CFG->lang");              print_upgrade_reload("index.php?agreelicense=1&lang=$CFG->lang");
147          } else {          } else {
148              notify(get_string('environmentok', 'admin'), 'notifysuccess');              echo $OUTPUT->notification(get_string('environmentok', 'admin'), 'notifysuccess');
149              print_continue("index.php?agreelicense=1&confirmrelease=1&lang=$CFG->lang");              echo $OUTPUT->continue_button("index.php?agreelicense=1&confirmrelease=1&lang=$CFG->lang");
150          }          }
151    
152          echo $OUTPUT->footer();          echo $OUTPUT->footer();
# Line 209  Line 209 
209          if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {          if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {
210              print_upgrade_reload('index.php?confirmupgrade=1');              print_upgrade_reload('index.php?confirmupgrade=1');
211          } else {          } else {
212              notify(get_string('environmentok', 'admin'), 'notifysuccess');              echo $OUTPUT->notification(get_string('environmentok', 'admin'), 'notifysuccess');
213              if (empty($CFG->skiplangupgrade)) {              if (empty($CFG->skiplangupgrade)) {
214                  echo $OUTPUT->box_start('generalbox', 'notice');                  echo $OUTPUT->box_start('generalbox', 'notice');
215                  print_string('langpackwillbeupdated', 'admin');                  print_string('langpackwillbeupdated', 'admin');
216                  echo $OUTPUT->box_end();                  echo $OUTPUT->box_end();
217              }              }
218              print_continue('index.php?confirmupgrade=1&confirmrelease=1');              echo $OUTPUT->continue_button('index.php?confirmupgrade=1&confirmrelease=1');
219          }          }
220    
221          echo $OUTPUT->footer();          echo $OUTPUT->footer();
# Line 231  Line 231 
231          echo $OUTPUT->box_end();          echo $OUTPUT->box_end();
232          print_plugin_tables();          print_plugin_tables();
233          print_upgrade_reload('index.php?confirmupgrade=1&confirmrelease=1');          print_upgrade_reload('index.php?confirmupgrade=1&confirmrelease=1');
234          print_continue('index.php?confirmupgrade=1&confirmrelease=1&confirmplugincheck=1');          echo $OUTPUT->continue_button('index.php?confirmupgrade=1&confirmrelease=1&confirmplugincheck=1');
235          echo $OUTPUT->footer();          echo $OUTPUT->footer();
236          die();          die();
237    
# Line 240  Line 240 
240          upgrade_core($version, true);          upgrade_core($version, true);
241      }      }
242  } else if ($version < $CFG->version) {  } else if ($version < $CFG->version) {
243      notify('WARNING!!!  The code you are using is OLDER than the version that made these databases!');      echo $OUTPUT->notification('WARNING!!!  The code you are using is OLDER than the version that made these databases!');
244  }  }
245    
246  // Updated human-readable release version if necessary  // Updated human-readable release version if necessary
# Line 356  Line 356 
356  $lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');  $lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');
357  if (time() - $lastcron > 3600 * 24) {  if (time() - $lastcron > 3600 * 24) {
358      $strinstallation = get_string('installation', 'install');      $strinstallation = get_string('installation', 'install');
359      $helpbutton = helpbutton('install', $strinstallation, 'moodle', true, false, '', true);      $helpbutton = $OUTPUT->help_icon(moodle_help_icon::make('install', $strinstallation));
360      echo $OUTPUT->box(get_string('cronwarning', 'admin').'&nbsp;'.$helpbutton, 'generalbox adminwarning');      echo $OUTPUT->box(get_string('cronwarning', 'admin').'&nbsp;'.$helpbutton, 'generalbox adminwarning');
361  }  }
362    

Legend:
Removed from v.1.400  
changed lines
  Added in v.1.401

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7