I recently installed the wiki module and upon installing and enabling the module I receive the following error:
20
21 /**
22 * Description of WikiEvents
23 *
24 * @author luke
25 */
26 class WikiModuleEvents
27 {
28
29 public static function onSpaceMenuInit(CEvent $event)
30 {
31 if ($event->sender->space !== null && $event->sender->space->isModuleEnabled('wiki') && $event->sender->space->isMember()) {
32 $event->sender->addItem(array(
33 'label' => Yii::t('WikiModule.base', 'Wiki'),
34 'group' => 'modules',
35 'url' => $event->sender->space->createUrl('//wiki/page'),
36 'icon' => '<i class="fa fa-book"></i>',
37 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'wiki'),
38 ));
39 }
40 }
41
42 public static function onProfileMenuInit($event)
43 { ```
Any help would be greatly appreciated.