Skip to content

Commit

Permalink
Merge branch 'MDL-34367_message_lib' of git://github.com/andyjdavis/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
danpoltawski committed Oct 16, 2012
2 parents 9b0a3e1 + 26e02d7 commit d2936c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions message/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
$url->param('course', $course);

$PAGE->set_url($url);
$PAGE->set_popup_notification_allowed(false); // We are within the messaging system so don't show message popups

if (!$course = $DB->get_record('course', array('id' => $course))) {
print_error('invalidcourseid');
Expand Down
6 changes: 0 additions & 6 deletions message/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@

define ('MESSAGE_SHORTLENGTH', 300);

//$PAGE isnt set if we're being loaded by cron which doesnt display popups anyway
if (isset($PAGE)) {
//TODO: this is a mega crazy hack - it is not acceptable to call anything when including lib!!! (skodak)
$PAGE->set_popup_notification_allowed(false); // We are in a message window (so don't pop up a new one)
}

define ('MESSAGE_DISCUSSION_WIDTH',600);
define ('MESSAGE_DISCUSSION_HEIGHT',500);

Expand Down

0 comments on commit d2936c2

Please sign in to comment.