Merge pull request #1012 from jloguercio/resourceTemp

Fix class resource not found
1.10.x
José Loguercio 9 years ago
commit 9f602068e0
  1. 2
      main/coursecopy/classes/Course.class.php
  2. 2
      main/coursecopy/classes/CourseSelectForm.class.php

@ -39,7 +39,7 @@ class Course
foreach ($this->resources as $type => $resources) {
if (is_array($resources)) {
foreach ($resources as $resource) {
Resource::setClassType($resource);
Coursecopy\Resource::setClassType($resource);
if ($resource->links_to($resource_to_check) ) {
return true;
}

@ -224,7 +224,7 @@ class CourseSelectForm
foreach ($resources as $id => $resource) {
if ($resource) {
// Event obj in 1.9.x in 1.10.x the class is CalendarEvent
Resource::setClassType($resource);
Coursecopy\Resource::setClassType($resource);
echo '<label class="checkbox">';
echo '<input type="checkbox" name="resource['.$type.']['.$id.']" id="resource['.$type.']['.$id.']" />';
$resource->show();

Loading…
Cancel
Save