Merge branch 'MDL-40963-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Sam Hemelryk
2013-08-06 13:59:23 +12:00
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ abstract class base implements \IteratorAggregate {
*/
public static function get_name() {
// Override in subclass with real lang string.
$parts = explode('\\', __CLASS__);
$parts = explode('\\', get_called_class());
if (count($parts) !== 3) {
return 'unknown event';
}