Error in latest CVS?

Error in latest CVS?

από Tim Allen -
Αριθμός απαντήσεων: 7

I just upgraded to the latest CVS for "1.4.2 nearly ". 

Now whenever I click on the settings link within a course, as an admin, I am getting the following error:

Fatal error: Call to undefined function: parameter() in /var/www/html/myclass/course/edit.php on line 8   sad

Unless someone tells me that this is some oversight or idiosyncracy on my part, I will add this to the bigtracker in the next hour...thoughtful

Μέσος όρος βαθμολογίας: -
Σε απάντηση σε Tim Allen

Re: Error in latest CVS?

από Petr Skoda -
Φωτογραφία Core developers Φωτογραφία Documentation writers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers
It is a bug, the files will be updated soon. Sorry for the problems.

skodak
Σε απάντηση σε Petr Skoda

Re: Error in latest CVS?

από Tim Allen -
No problem, thanks a lot for the feedback Petr.  smile 
Σε απάντηση σε Tim Allen

Re: Error in latest CVS?

από Petr Skoda -
Φωτογραφία Core developers Φωτογραφία Documentation writers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers
If you want to fix it, edit file course/edit.php
change:
    $id       = (int)parameter('id', 0);         // course id
    $category = (int)parameter('category', 0);   // possible default category

to:
    $id       = (int)optional_param('id', 0);         // course id
    $category = (int)optional_param('category', 0);   // possible default category

Σε απάντηση σε Petr Skoda

Re: Error in latest CVS?

από Ken Rushing -

I made the change you suggested, but I still get the same error.  Do you have any more suggestions?

Thanks,
Ken