From abeb4645a4e7e6898f98ac0f1c9e28caf5e6908d Mon Sep 17 00:00:00 2001 From: Andy Strobel Date: Sat, 28 Jun 2014 12:13:11 +0200 Subject: [PATCH] Layout optimizations --- protected/modules/polls/PollsModule.php | 1 + protected/modules/polls/controllers/PollController.php | 2 +- protected/modules/polls/widgets/views/stream.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/protected/modules/polls/PollsModule.php b/protected/modules/polls/PollsModule.php index 6e24a63270..f36ef813ab 100644 --- a/protected/modules/polls/PollsModule.php +++ b/protected/modules/polls/PollsModule.php @@ -36,6 +36,7 @@ class PollsModule extends CWebModule { if ($space->isModuleEnabled('polls')) { $event->sender->addItem(array( 'label' => Yii::t('PollsModule.base', 'Polls'), + 'group' => 'modules', 'url' => Yii::app()->createUrl('//polls/poll/show', array('sguid' => $space->guid)), 'icon' => '', 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'polls'), diff --git a/protected/modules/polls/controllers/PollController.php b/protected/modules/polls/controllers/PollController.php index af83edeb05..470e28f012 100644 --- a/protected/modules/polls/controllers/PollController.php +++ b/protected/modules/polls/controllers/PollController.php @@ -164,7 +164,7 @@ class PollController extends Controller { $users = User::model()->findAllBySql($sql, $params); $output = $this->renderPartial('application.modules_core.user.views._listUsers', array( - 'title' => Yii::t('PollsModule.base', "Users voted for: {answer}", array('{answer}' => $answer->answer)), + 'title' => Yii::t('PollsModule.base', "Users voted for: {answer}", array('{answer}' => $answer->answer)), 'users' => $users, 'pagination' => $pagination ), true); diff --git a/protected/modules/polls/widgets/views/stream.php b/protected/modules/polls/widgets/views/stream.php index d0d358f5e9..b8c89fb10e 100644 --- a/protected/modules/polls/widgets/views/stream.php +++ b/protected/modules/polls/widgets/views/stream.php @@ -9,7 +9,7 @@ * @since 0.5 */ ?> -