Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsplitt3r <splitt3r@users.noreply.github.com>2017-10-09 21:48:29 +0300
committersplitt3r <splitt3r@users.noreply.github.com>2017-10-09 21:48:29 +0300
commit5aa8d0269b848ea5567087c54a87c86c2558b3cb (patch)
tree45830d989480b667338180dd006ceb483b261a95 /templates
parentbaced68588550a681cd403a900f1f0f58699cd55 (diff)
Updated changelog
Diffstat (limited to 'templates')
-rw-r--r--templates/create.tmpl.php4
-rw-r--r--templates/goto.tmpl.php3
2 files changed, 3 insertions, 4 deletions
diff --git a/templates/create.tmpl.php b/templates/create.tmpl.php
index 6939b30e..6d84ff52 100644
--- a/templates/create.tmpl.php
+++ b/templates/create.tmpl.php
@@ -21,19 +21,19 @@
*
*/
- use \OCP\User;
-
\OCP\Util::addStyle('polls', 'main');
\OCP\Util::addStyle('polls', 'createpoll');
\OCP\Util::addStyle('polls', 'jquery.datetimepicker');
\OCP\Util::addScript('polls', 'create_edit');
\OCP\Util::addScript('polls', 'jquery.datetimepicker.full.min');
+
$userId = $_['userId'];
$userMgr = $_['userMgr'];
$urlGenerator = $_['urlGenerator'];
$isUpdate = isset($_['poll']) && $_['poll'] !== null;
$isAnonymous = false;
$hideNames = false;
+
if ($isUpdate) {
$poll = $_['poll'];
$isAnonymous = $poll->getIsAnonymous();
diff --git a/templates/goto.tmpl.php b/templates/goto.tmpl.php
index bd96ff73..63950db7 100644
--- a/templates/goto.tmpl.php
+++ b/templates/goto.tmpl.php
@@ -21,7 +21,7 @@
*
*/
- use \OCP\User;
+ use OCP\User;
\OCP\Util::addStyle('polls', 'main');
\OCP\Util::addStyle('polls', 'vote');
@@ -46,7 +46,6 @@
} else {
$expired = time() > strtotime($poll->getExpire());
}
-
?>
<?php if($poll->getType() == '0') : ?>