Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

size of top frame, if any, set using $CFG->resource_framesize

  • Loading branch information...
commit 53ed0d14c8b162d7774d1488f49403c87aa3f52b 1 parent 96a4f85
gbateson authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/hotpot/view.php
View
6 mod/hotpot/view.php
@@ -277,9 +277,13 @@
break;
default:
+ // set frame height (default 85). Height can be changed by admin user
+ // (Administration->Configuration->Module, Resource->Settings)
+ $framesize = isset($CFG->resource_framesize) ? $CFG->resource_framesize : 85;
+
print "<HTML>\n";
print "<HEAD><TITLE>$title</TITLE></HEAD>\n";
- print "<FRAMESET rows=85,*>\n";
+ print "<FRAMESET rows=$framesize,*>\n";
print "<FRAME src=\"view.php?id=$cm->id&frameset=top\">\n";
print "<FRAME src=\"view.php?id=$cm->id&frameset=main\">\n";
print "</FRAMESET>\n";
Please sign in to comment.
Something went wrong with that request. Please try again.