~ubuntu-branches/ubuntu/hoary/moodle/hoary

« back to all changes in this revision

Viewing changes to mod/resource/filter.php

  • Committer: Bazaar Package Importer
  • Author(s): Isaac Clerencia
  • Date: 2004-12-29 00:49:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041229004952-gliyqzpj2w3e7clx
Tags: 1.4.3-1
* Urgency high as upstream release fixes several security bugs
* New upstream release
* Write database creation errors and warn the user about it, 
closes: #285842, #285842

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?PHP // $Id: filter.php,v 1.4.4.1 2004/05/30 00:28:52 stronk7 Exp $
 
1
<?PHP // $Id: filter.php,v 1.6 2004/08/08 06:57:44 moodler Exp $
2
2
    //This function provides automatic linking to
3
3
    //resources when its name (title) is found inside every Moodle text
4
4
    //It's based in the glosssary filter by Williams Castillo
5
5
    //Modifications by stronk7. Enjoy! :-)
6
6
 
7
 
    $textfilter_function='resource_names_filter';
8
 
 
9
 
    if (function_exists($textfilter_function)) {
10
 
        return;
11
 
    }
12
 
 
13
 
    function resource_names_filter($courseid, $text) {
 
7
    function resource_filter($courseid, $text) {
14
8
 
15
9
        global $CFG;
16
10