Whoops - typo!
This commit is contained in:
@@ -253,7 +253,8 @@ function display() {
|
||||
|
||||
/// Set up some variables
|
||||
|
||||
$inpopup = !empty($_GET["inpopup"]);
|
||||
$inpopup_param = optional_param( 'inpopup','' );
|
||||
$inpopup = !empty( $inpopup_param );
|
||||
|
||||
if (resource_is_url($resource->reference)) {
|
||||
$fullurl = $resource->reference;
|
||||
@@ -345,7 +346,8 @@ function display() {
|
||||
|
||||
/// Now check whether we need to display a frameset
|
||||
|
||||
if (empty($_GET['frameset']) and !$embedded and !$inpopup and $resource->options == "frame") {
|
||||
$frameset = optional_param( 'frameset','' );
|
||||
if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == "frame")) {
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n";
|
||||
echo "<html dir=\"ltr\">\n";
|
||||
echo '<head>';
|
||||
@@ -371,7 +373,7 @@ function display() {
|
||||
|
||||
/// If we are in a frameset, just print the top of it
|
||||
|
||||
if (!empty($_GET['frameset']) and $_GET['frameset'] == "top") {
|
||||
if (!empty( $frameset ) and ($frameset == "top") ) {
|
||||
print_header($pagetitle, $course->fullname, "$this->navigation ".format_string($resource->name), "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent"));
|
||||
|
||||
$options->para = false;
|
||||
|
||||
Reference in New Issue
Block a user