Moodle

a php error occurs when we use a plugin_install function .

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9, 1.9.1
  • Fix Version/s: 1.9.5
  • Component/s: Installation
  • Labels:
    None
  • Environment:
    all - php 5.2
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

a php error occurs when we use a plugin_install function .

lib/adminlib.ph - line 160 we should have $plugin -> name instead of $module -> name

if (function_exists($installfunction)) {
if (! $installfunction() ) { notify('Encountered a problem running install function for '.$module->name.'!'); }
}

Activity

Hide
Petr Škoda (skodak) added a comment -

fixed, thanks!

Show
Petr Škoda (skodak) added a comment - fixed, thanks!
Hide
Tim Hunt added a comment -

Good fix. Thanks all.

(I assume the later commits actually belong to another bug.)

Show
Tim Hunt added a comment - Good fix. Thanks all. (I assume the later commits actually belong to another bug.)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: