diff --git a/mod/resource/type/ims/resource.class.php b/mod/resource/type/ims/resource.class.php index a59c9a95c54..65eca6593db 100644 --- a/mod/resource/type/ims/resource.class.php +++ b/mod/resource/type/ims/resource.class.php @@ -346,12 +346,26 @@ class resource_ims extends resource_base { if (empty($frameset)) { + /// Select encoding + if (!empty($CFG->unicode)) { + $encoding = 'utf-8'; + } else { + $encoding = get_string('thischarset'); + } + + /// Select direction + if (get_string('thisdirection') == 'rtl') { + $direction = ' dir="rtl"'; + } else { + $direction = ' dir="ltr"'; + } + /// The frameset output starts echo "\n"; - echo "\n"; + echo "\n"; echo ''; - echo ''; + echo ''; echo "{$course->shortname}: ".strip_tags(format_string($resource->name,true))."\n"; echo "resource_framesize,*\">"; //Main frameset echo "id}&type={$resource->type}&frameset=top\" />"; //Top frame @@ -404,13 +418,26 @@ class resource_ims extends resource_base { } } + /// Select encoding + if (!empty($CFG->unicode)) { + $encoding = 'utf-8'; + } else { + $encoding = get_string('thischarset'); + } + + /// Select direction + if (get_string('thisdirection') == 'rtl') { + $direction = ' dir="rtl"'; + } else { + $direction = ' dir="ltr"'; + } /// The frameset output starts echo "\n"; - echo "\n"; + echo "\n"; echo ''; - echo ''; + echo ''; echo "{$course->shortname}: ".strip_tags(format_string($resource->name,true))."\n"; if (!empty($this->parameters->navigationbuttons)) { echo ""; //Ims frameset with navigation buttons