mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
MDL-19814 Migrated calls to close_window_button()
This commit is contained in:
parent
d36cb95f5d
commit
e087ee764a
@ -344,7 +344,7 @@ class resource_file extends resource_base {
|
||||
}
|
||||
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
|
||||
if ($inpopup) {
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
}
|
||||
print_footer('none');
|
||||
die;
|
||||
|
@ -315,7 +315,7 @@ class resource_ims extends resource_base {
|
||||
* @param CFG global object
|
||||
*/
|
||||
function display() {
|
||||
global $CFG, $THEME, $USER, $PAGE;
|
||||
global $CFG, $THEME, $USER, $PAGE, $OUTPUT;
|
||||
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
@ -397,7 +397,7 @@ class resource_ims extends resource_base {
|
||||
print_simple_box_end();
|
||||
/// Close button if inpopup
|
||||
if ($inpopup) {
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
}
|
||||
|
||||
print_footer();
|
||||
|
@ -12,7 +12,7 @@
|
||||
if (empty($SESSION->HIVE_SESSION)) {
|
||||
print_header();
|
||||
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
print_footer();
|
||||
die;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
if (empty($SESSION->HIVE_SESSION)) {
|
||||
print_header();
|
||||
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
print_footer();
|
||||
die;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
if (empty($SESSION->HIVE_SESSION)) {
|
||||
print_header();
|
||||
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
print_footer();
|
||||
die;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
if (empty($SESSION->HIVE_SESSION)) {
|
||||
print_header();
|
||||
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
print_footer();
|
||||
die;
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ function _postprocess(&$resource) {
|
||||
* @param CFG global object
|
||||
*/
|
||||
function display() {
|
||||
global $CFG, $THEME, $SESSION;
|
||||
global $CFG, $THEME, $SESSION, $OUTPUT;
|
||||
|
||||
/// Set up generic stuff first, including checking for access
|
||||
parent::display();
|
||||
@ -271,7 +271,7 @@ function display() {
|
||||
}
|
||||
notify('You do not have access to HarvestRoad Hive. This resource is unavailable.');
|
||||
if ($inpopup) {
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
}
|
||||
print_footer('none');
|
||||
die;
|
||||
@ -290,7 +290,7 @@ function display() {
|
||||
}
|
||||
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
|
||||
if ($inpopup) {
|
||||
close_window_button();
|
||||
echo $OUTPUT->close_window_button();
|
||||
}
|
||||
print_footer('none');
|
||||
die;
|
||||
|
Loading…
x
Reference in New Issue
Block a user