~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to mod/resource/locallib.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
 * @param object $resource
264
264
 * @param object $cm
265
265
 * @param object $course
266
 
 * @param bool $ignoresettings print even if not specified in modedit
 
266
 * @param bool $notused This variable is no longer used
267
267
 * @return void
268
268
 */
269
 
function resource_print_heading($resource, $cm, $course, $ignoresettings=false) {
 
269
function resource_print_heading($resource, $cm, $course, $notused = false) {
270
270
    global $OUTPUT;
271
 
 
272
 
    $options = empty($resource->displayoptions) ? array() : unserialize($resource->displayoptions);
273
 
    if ($ignoresettings or !empty($options['printheading'])) {
274
 
        echo $OUTPUT->heading(format_string($resource->name), 2, 'main', 'resourceheading');
275
 
    }
 
271
    echo $OUTPUT->heading(format_string($resource->name), 2);
276
272
}
277
273
 
278
274
/**