diff --git a/.gitignore b/.gitignore index 187adb2..15aeb71 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -/nbproject/ \ No newline at end of file +/nbproject/ +/.settings/ +/.buildpath +/.project diff --git a/lib.php b/lib.php index 8c69193..69cb858 100644 --- a/lib.php +++ b/lib.php @@ -122,7 +122,7 @@ function tab_add_instance($tab) $value = trim($value); if (isset($value) && $value <> '') { - $option = new object(); + $option = new stdClass(); $option->tabname = $value; $option->tabid = $tab->id; @@ -153,7 +153,7 @@ function tab_add_instance($tab) $draftitemid = $tab->content[$key]['itemid']; if ($draftitemid) { - $tabcontentupdate = new object(); + $tabcontentupdate = new stdClass(); $tabcontentupdate->id = $newtab_content_id; $tabcontentupdate->tabcontent = file_save_draft_area_files($draftitemid, $context->id, 'mod_tab', 'content', $newtab_content_id, $editoroptions, $tab->content[$key]['text']); $DB->update_record('tab_content', $tabcontentupdate); @@ -204,7 +204,7 @@ function tab_update_instance($tab) $value = trim($value); - $option = new object(); + $option = new stdClass(); $option->tabname = $value; $option->tabcontentorder = $tab->tabcontentorder[$key]; $option->externalurl = $tab->externalurl[$key]; @@ -245,7 +245,7 @@ function tab_update_instance($tab) $draftitemid = $tab->content[$key]['itemid']; if ($draftitemid) { - $tabcontentupdate = new object(); + $tabcontentupdate = new stdClass(); $tabcontentupdate->id = $newtab_content_id; $tabcontentupdate->tabcontent = file_save_draft_area_files($draftitemid, $context->id, 'mod_tab', 'content', $newtab_content_id, $editoroptions, $tab->content[$key]['text']); $DB->update_record('tab_content', $tabcontentupdate); diff --git a/locallib.php b/locallib.php index 62d0c34..e34ec44 100644 --- a/locallib.php +++ b/locallib.php @@ -171,7 +171,7 @@ function tab_embed_general($fullurl, $title, $clicktoopen, $mimetype) // IE can not embed stuff properly if stored on different server // that is why we use iframe instead, unfortunately this tag does not validate // in xhtml strict mode - if ($mimetype === 'text/html' and check_browser_version('MSIE', 5)) + if ($mimetype === 'text/html' and core_useragent::check_browser_version('MSIE', 5)) { if (preg_match('(^https?://[^/]*)', $fullurl, $matches)) {