Skip to content

Commit

Permalink
MDL-19814 Migrated calls to close_window_button()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent d36cb95 commit e087ee7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion mod/resource/type/file/resource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function display() {
}
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
if ($inpopup) {
close_window_button();
echo $OUTPUT->close_window_button();
}
print_footer('none');
die;
Expand Down
4 changes: 2 additions & 2 deletions mod/resource/type/ims/resource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function delete_instance($resource) {
* @param CFG global object
*/
function display() {
global $CFG, $THEME, $USER, $PAGE;
global $CFG, $THEME, $USER, $PAGE, $OUTPUT;

require_once($CFG->libdir.'/filelib.php');

Expand Down Expand Up @@ -397,7 +397,7 @@ function display() {
print_simple_box_end();
/// Close button if inpopup
if ($inpopup) {
close_window_button();
echo $OUTPUT->close_window_button();
}

print_footer();
Expand Down
2 changes: 1 addition & 1 deletion mod/resource/type/repository/hive/openhive.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/resource/type/repository/hive/openlitebrowse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/resource/type/repository/hive/openlitepublish.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/resource/type/repository/hive/openlitesearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions mod/resource/type/repository/resource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e087ee7

Please sign in to comment.