@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | protected function base_fetch_page($vars, $dir, $page = 'index.php', $req_uri = '') |
10 | 10 | { |
11 | 11 | foreach ($vars as $k => $v) { |
12 | - $vars[$k] = $k . '=' . urlencode($v); |
|
12 | + $vars[$k] = $k . '=' . urlencode($v); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | if (!$req_uri) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | protected function base_fetch_page_user($vars, $cookie, $dir, $page = 'index.php', $req_uri = '') |
27 | 27 | { |
28 | 28 | foreach ($vars as $k => $v) { |
29 | - $vars[$k] = $k . '=' . urlencode($v); |
|
29 | + $vars[$k] = $k . '=' . urlencode($v); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | if (!$req_uri) { |
@@ -9,8 +9,8 @@ |
||
9 | 9 | <div class="search-page__section search-page__section--results"> |
10 | 10 | <div class="search-page__section__primary"> |
11 | 11 | <?php |
12 | - # XXX Hack |
|
13 | - if (preg_match('#budget#', $searchstring)) { ?> |
|
12 | + # XXX Hack |
|
13 | + if (preg_match('#budget#', $searchstring)) { ?> |
|
14 | 14 | <h3 class="search-result__title"><a href="https://www.theyworkforyou.com/debates/?id=2017-11-22a.1045.3">Read the Budget speech and debate</a></h3> |
15 | 15 | <?php } ?> |
16 | 16 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <div class="full-page"> |
2 | - <div class="full-page__row search-page <?php if ( !$searchstring ) { ?>search-page--blank<?php } ?>"> |
|
2 | + <div class="full-page__row search-page <?php if (!$searchstring) { ?>search-page--blank<?php } ?>"> |
|
3 | 3 | |
4 | 4 | <form class="js-search-form-without-options"> |
5 | 5 | <?php include 'form_main.php'; ?> |
6 | 6 | </form> |
7 | 7 | |
8 | - <?php if ( $searchstring && !isset($warnings) ) { ?> |
|
8 | + <?php if ($searchstring && !isset($warnings)) { ?> |
|
9 | 9 | <div class="search-page__section search-page__section--results"> |
10 | 10 | <div class="search-page__section__primary"> |
11 | 11 | <?php |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | <h3 class="search-result__title"><a href="https://www.theyworkforyou.com/debates/?id=2017-11-22a.1045.3">Read the Budget speech and debate</a></h3> |
15 | 15 | <?php } ?> |
16 | 16 | |
17 | - <?php if ( $cons ) { ?> |
|
18 | - <?php if ( count($cons) > 1 ) { |
|
17 | + <?php if ($cons) { ?> |
|
18 | + <?php if (count($cons) > 1) { |
|
19 | 19 | $types = array(); |
20 | - if ( $mp_types['mp'] > 0 ) { |
|
20 | + if ($mp_types['mp'] > 0) { |
|
21 | 21 | $types[] = 'MPs'; |
22 | 22 | } |
23 | - if ( $mp_types['former'] > 0 ) { |
|
23 | + if ($mp_types['former'] > 0) { |
|
24 | 24 | $types[] = 'former MPs'; |
25 | 25 | } |
26 | 26 | $desc = ucfirst(implode(' and ', $types)); |
@@ -29,14 +29,14 @@ discard block |
||
29 | 29 | <?php } else { // count($cons) <= 1 ?> |
30 | 30 | <h2><?= $mp_types['former'] ? 'Former ' : '' ?>MP for <em class="current-search-term"><?= _htmlentities($searchstring) ?></em></h2> |
31 | 31 | <?php } ?> |
32 | - <?php foreach ( $cons as $member ) { ?> |
|
32 | + <?php foreach ($cons as $member) { ?> |
|
33 | 33 | <?php include('person.php'); ?> |
34 | 34 | <?php } ?> |
35 | 35 | <?php } ?> |
36 | 36 | |
37 | - <?php if ( $members ) { ?> |
|
37 | + <?php if ($members) { ?> |
|
38 | 38 | <h2>People matching <em class="current-search-term"><?= _htmlentities($searchstring) ?></em></h2> |
39 | - <?php foreach ( $members as $member ) { ?> |
|
39 | + <?php foreach ($members as $member) { ?> |
|
40 | 40 | <?php include('person.php'); ?> |
41 | 41 | <?php } ?> |
42 | 42 | <hr> |
@@ -44,25 +44,25 @@ discard block |
||
44 | 44 | |
45 | 45 | <?php if ($glossary) { ?> |
46 | 46 | <h2>Glossary items matching <em class="current-search-term"><?= _htmlentities($searchstring) ?></em></h2> |
47 | - <?php foreach ( $glossary as $item ) { ?> |
|
47 | + <?php foreach ($glossary as $item) { ?> |
|
48 | 48 | <?php include('glossary.php'); ?> |
49 | 49 | <?php } ?> |
50 | 50 | <hr> |
51 | 51 | <?php } ?> |
52 | 52 | |
53 | - <?php if ( isset($pid) && $wtt == 2 ) { ?> |
|
53 | + <?php if (isset($pid) && $wtt == 2) { ?> |
|
54 | 54 | <p>I want to <a href="https://www.writetothem.com/lords/?pid=<?= $pid ?>">write to <?= $wtt_lord_name ?></a></p> |
55 | 55 | <?php } ?> |
56 | 56 | |
57 | - <?php if ( isset($error) ) { ?> |
|
57 | + <?php if (isset($error)) { ?> |
|
58 | 58 | There was an error – <?= $error ?> – searching for <em class="current-search-term"><?= _htmlentities($searchstring) ?></em>. |
59 | 59 | <?php } else { ?> |
60 | 60 | <h2> |
61 | - <?php if ( $pagination_links ) { ?> |
|
61 | + <?php if ($pagination_links) { ?> |
|
62 | 62 | Results <?= $pagination_links['first_result'] ?>–<?= $pagination_links['last_result'] ?> of <?= $info['total_results'] ?> |
63 | - <?php } else if ( $info['total_results'] == 1 ) { ?> |
|
63 | + <?php } else if ($info['total_results'] == 1) { ?> |
|
64 | 64 | The only result |
65 | - <?php } else if ( $info['total_results'] == 0 ) { ?> |
|
65 | + <?php } else if ($info['total_results'] == 0) { ?> |
|
66 | 66 | There were no results |
67 | 67 | <?php } else { ?> |
68 | 68 | All <?= $info['total_results'] ?> results |
@@ -70,16 +70,16 @@ discard block |
||
70 | 70 | for <em class="current-search-term"><?= _htmlentities($searchdescription) ?></em> |
71 | 71 | </h2> |
72 | 72 | |
73 | - <?php if ( $info['spelling_correction'] ) { ?> |
|
74 | - <p>Did you mean <a href="/search/?q=<?= urlencode($info['spelling_correction']) ?>"><?= _htmlentities( $info['spelling_correction_display'] ) ?></a>?</p> |
|
73 | + <?php if ($info['spelling_correction']) { ?> |
|
74 | + <p>Did you mean <a href="/search/?q=<?= urlencode($info['spelling_correction']) ?>"><?= _htmlentities($info['spelling_correction_display']) ?></a>?</p> |
|
75 | 75 | <?php } ?> |
76 | 76 | |
77 | - <?php if ( $info['total_results'] ) { ?> |
|
77 | + <?php if ($info['total_results']) { ?> |
|
78 | 78 | <ul class="search-result-display-options"> |
79 | - <?php if ( $sort_order == 'relevance' ) { ?> |
|
79 | + <?php if ($sort_order == 'relevance') { ?> |
|
80 | 80 | <li>Sorted by relevance</li> |
81 | 81 | <li>Sort by date: <a href="<?= $urls['newest'] ?>">newest</a> / <a href="<?= $urls['oldest'] ?>">oldest</a></li> |
82 | - <?php } else if ( $sort_order == 'oldest' ) { ?> |
|
82 | + <?php } else if ($sort_order == 'oldest') { ?> |
|
83 | 83 | <li>Sort by <a href="<?= $urls['relevance'] ?>">relevance</a></li> |
84 | 84 | <li>Sorted by date: <a href="<?= $urls['newest'] ?>">newest</a> / oldest</li> |
85 | 85 | <?php } else { ?> |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | </ul> |
91 | 91 | <?php } ?> |
92 | 92 | |
93 | - <?php foreach ( $rows as $result ) { ?> |
|
93 | + <?php foreach ($rows as $result) { ?> |
|
94 | 94 | <div class="search-result search-result--generic"> |
95 | 95 | <h3 class="search-result__title"><a href="<?= $result['listurl'] ?>"><?= $result['parent']['body'] ?></a> (<?= format_date($result['hdate'], SHORTDATEFORMAT) ?>)</h3> |
96 | 96 | <p class="search-result__description"><?= isset($result['speaker']) ? $result['speaker']['name'] . ': ' : '' ?><?= $result['extract'] ?></p> |
@@ -99,16 +99,16 @@ discard block |
||
99 | 99 | |
100 | 100 | <hr> |
101 | 101 | |
102 | - <?php if ( $pagination_links ) { ?> |
|
102 | + <?php if ($pagination_links) { ?> |
|
103 | 103 | <div class="search-result-pagination"> |
104 | - <?php if ( isset($pagination_links['prev']) ) { ?> |
|
104 | + <?php if (isset($pagination_links['prev'])) { ?> |
|
105 | 105 | <a href="<?= $pagination_links['firstpage']['url'] ?>" title="First page"><<</a> |
106 | 106 | <a href="<?= $pagination_links['prev']['url'] ?>" title="Previous page"><</a> |
107 | 107 | <?php } ?> |
108 | - <?php foreach ( $pagination_links['nums'] as $link ) { ?> |
|
108 | + <?php foreach ($pagination_links['nums'] as $link) { ?> |
|
109 | 109 | <a href="<?= $link['url'] ?>"<?= $link['current'] ? ' class="search-result-pagination__current-page"' : '' ?>><?= $link['page'] ?></a> |
110 | 110 | <?php } ?> |
111 | - <?php if ( isset($pagination_links['next']) ) { ?> |
|
111 | + <?php if (isset($pagination_links['next'])) { ?> |
|
112 | 112 | <a href="<?= $pagination_links['next']['url'] ?>" title="Next page">></a> |
113 | 113 | <a href="<?= $pagination_links['lastpage']['url'] ?>" title="Final page">>></a> |
114 | 114 | <?php } ?> |
@@ -26,7 +26,8 @@ |
||
26 | 26 | $desc = ucfirst(implode(' and ', $types)); |
27 | 27 | ?> |
28 | 28 | <h2><?= $desc ?> in constituencies matching <em class="current-search-term"><?= _htmlentities($searchstring) ?></em></h2> |
29 | - <?php } else { // count($cons) <= 1 ?> |
|
29 | + <?php } else { |
|
30 | +// count($cons) <= 1 ?> |
|
30 | 31 | <h2><?= $mp_types['former'] ? 'Former ' : '' ?>MP for <em class="current-search-term"><?= _htmlentities($searchstring) ?></em></h2> |
31 | 32 | <?php } ?> |
32 | 33 | <?php foreach ( $cons as $member ) { ?> |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | if ($hide_question) { |
34 | 34 | $always_ask = 0; |
35 | 35 | $show_survey_qn = $current_question; |
36 | - setcookie('survey', $current_question, time()+60*60*24*365, '/'); |
|
36 | + setcookie('survey', $current_question, time() + 60 * 60 * 24 * 365, '/'); |
|
37 | 37 | } elseif ($has_answered_question == $current_question && !$always_ask) { |
38 | 38 | $show_survey_qn = $current_question; |
39 | - setcookie('survey', $current_question, time()+60*60*24*365, '/'); |
|
39 | + setcookie('survey', $current_question, time() + 60 * 60 * 24 * 365, '/'); |
|
40 | 40 | } elseif (isset($_COOKIE['survey'])) { |
41 | 41 | $show_survey_qn = $_COOKIE['survey']; |
42 | 42 | } |
@@ -49,16 +49,16 @@ discard block |
||
49 | 49 | if ($show_survey_qn < $current_question && !$has_answered_question) { |
50 | 50 | $page_url = ''; |
51 | 51 | $hide_url = ''; |
52 | - if ( in_array( $this_page, array('mp', 'peer', 'msp', 'mla', 'royal') ) ) { |
|
52 | + if (in_array($this_page, array('mp', 'peer', 'msp', 'mla', 'royal'))) { |
|
53 | 53 | global $MEMBER; |
54 | 54 | $page_url = $MEMBER->url(true) . "?answered_survey=$current_question"; |
55 | 55 | $hide_url = $MEMBER->url() . "?hide_survey=$current_question"; |
56 | 56 | } else { |
57 | 57 | $URL = new \MySociety\TheyWorkForYou\Url($this_page); |
58 | - $URL->insert(array('answered_survey' => $current_question )); |
|
58 | + $URL->insert(array('answered_survey' => $current_question)); |
|
59 | 59 | $page_url = 'https://' . DOMAIN . $URL->generate(); |
60 | 60 | $URL = new \MySociety\TheyWorkForYou\Url($this_page); |
61 | - $URL->insert(array('hide_survey' => $current_question )); |
|
61 | + $URL->insert(array('hide_survey' => $current_question)); |
|
62 | 62 | $hide_url = $URL->generate(); |
63 | 63 | } |
64 | 64 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | include_once '../../includes/easyparliament/init.php'; |
4 | -include_once (INCLUDESPATH."easyparliament/commentreportlist.php"); |
|
4 | +include_once (INCLUDESPATH . "easyparliament/commentreportlist.php"); |
|
5 | 5 | |
6 | 6 | $this_page = "admin_badusers"; |
7 | 7 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $rows = array(); |
33 | 33 | $USERURL = new \MySociety\TheyWorkForYou\Url('userview'); |
34 | 34 | |
35 | -for ($row=0; $row<$q->rows(); $row++) { |
|
35 | +for ($row = 0; $row < $q->rows(); $row++) { |
|
36 | 36 | |
37 | 37 | $user_id = $q->field($row, 'user_id'); |
38 | 38 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $totalcomments = $r->field(0, 'totalcount'); |
45 | 45 | |
46 | - $percentagedeleted = ( $q->field($row, 'deletedcount') / $totalcomments ) * 100; |
|
46 | + $percentagedeleted = ($q->field($row, 'deletedcount') / $totalcomments) * 100; |
|
47 | 47 | |
48 | 48 | |
49 | 49 | // Get complaints made about this user's comments, but not upheld. |
@@ -59,17 +59,17 @@ discard block |
||
59 | 59 | |
60 | 60 | $USERURL->insert(array('u'=>$user_id)); |
61 | 61 | |
62 | - $rows[] = array ( |
|
62 | + $rows[] = array( |
|
63 | 63 | '<a href="' . $USERURL->generate() . '">' . $q->field($row, 'firstname') . ' ' . $q->field($row, 'lastname') . '</a>', |
64 | 64 | $totalcomments, |
65 | 65 | $q->field($row, 'deletedcount'), |
66 | - $percentagedeleted.'%', |
|
66 | + $percentagedeleted . '%', |
|
67 | 67 | $notupheldcount |
68 | 68 | ); |
69 | 69 | } |
70 | 70 | |
71 | -$tabledata = array ( |
|
72 | - 'header' => array ( |
|
71 | +$tabledata = array( |
|
72 | + 'header' => array( |
|
73 | 73 | 'Name', |
74 | 74 | 'Total comments', |
75 | 75 | 'Number deleted', |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $rows = array(); |
106 | 106 | $USERURL = new \MySociety\TheyWorkForYou\Url('userview'); |
107 | 107 | |
108 | -for ($row=0; $row<$q->rows(); $row++) { |
|
108 | +for ($row = 0; $row < $q->rows(); $row++) { |
|
109 | 109 | |
110 | 110 | $user_id = $q->field($row, 'user_id'); |
111 | 111 | |
@@ -117,15 +117,15 @@ discard block |
||
117 | 117 | WHERE user_id = '$user_id' |
118 | 118 | AND upheld = '1'"); |
119 | 119 | |
120 | - $rows[] = array ( |
|
120 | + $rows[] = array( |
|
121 | 121 | '<a href="' . $USERURL->generate() . '">' . $q->field($row, 'firstname') . ' ' . $q->field($row, 'lastname') . '</a>', |
122 | 122 | $q->field($row, 'rejectedcount'), |
123 | 123 | $r->field(0, 'upheldcount') |
124 | 124 | ); |
125 | 125 | |
126 | 126 | } |
127 | -$tabledata = array ( |
|
128 | - 'header' => array ( |
|
127 | +$tabledata = array( |
|
128 | + 'header' => array( |
|
129 | 129 | 'Name', |
130 | 130 | 'Reports not upheld', |
131 | 131 | 'Reports upheld' |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | include_once '../../includes/easyparliament/init.php'; |
4 | -include_once (INCLUDESPATH."easyparliament/commentreportlist.php"); |
|
4 | +include_once (INCLUDESPATH . "easyparliament/commentreportlist.php"); |
|
5 | 5 | |
6 | 6 | $this_page = "admin_home"; |
7 | 7 | |
@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | $q = $db->query("SELECT COUNT(*) AS count FROM users WHERE confirmed = '0'"); |
23 | 23 | $unconfirmedusers = $q->field(0, 'count'); |
24 | 24 | |
25 | -$olddate = gmdate("Y-m-d H:i:s", time()-86400); |
|
25 | +$olddate = gmdate("Y-m-d H:i:s", time() - 86400); |
|
26 | 26 | $q = $db->query("SELECT COUNT(*) AS count FROM users WHERE lastvisit > '$olddate'"); |
27 | 27 | $dayusers = $q->field(0, 'count'); |
28 | 28 | |
29 | -$olddate = gmdate("Y-m-d H:i:s", time()-86400*7); |
|
29 | +$olddate = gmdate("Y-m-d H:i:s", time() - 86400 * 7); |
|
30 | 30 | $q = $db->query("SELECT COUNT(*) AS count FROM users WHERE lastvisit > '$olddate'"); |
31 | 31 | $weekusers = $q->field(0, 'count'); |
32 | 32 | ?> |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $rows = array(); |
62 | 62 | $USERURL = new \MySociety\TheyWorkForYou\Url('userview'); |
63 | 63 | |
64 | -for ($row=0; $row<$q->rows(); $row++) { |
|
64 | +for ($row = 0; $row < $q->rows(); $row++) { |
|
65 | 65 | |
66 | 66 | $user_id = $q->field($row, 'user_id'); |
67 | 67 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $name = _htmlspecialchars($q->field($row, 'firstname') . ' ' . $q->field($row, 'lastname')); |
77 | 77 | } |
78 | 78 | |
79 | - $rows[] = array ( |
|
79 | + $rows[] = array( |
|
80 | 80 | $name, |
81 | 81 | '<a href="mailto:' . $q->field($row, 'email') . '">' . $q->field($row, 'email') . '</a>', |
82 | 82 | $confirmed, |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | ); |
85 | 85 | } |
86 | 86 | |
87 | -$tabledata = array ( |
|
88 | - 'header' => array ( |
|
87 | +$tabledata = array( |
|
88 | + 'header' => array( |
|
89 | 89 | 'Name', |
90 | 90 | 'Email', |
91 | 91 | 'Confirmed?', |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $anchor = '#addcomment'; |
21 | 21 | |
22 | 22 | $URL = new \MySociety\TheyWorkForYou\Url('userjoin'); |
23 | -$URL->insert(array('ret'=>$returl.$anchor)); |
|
23 | +$URL->insert(array('ret'=>$returl . $anchor)); |
|
24 | 24 | $joinurl = $URL->generate(); |
25 | 25 | |
26 | 26 |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $HANSARDURL = new \MySociety\TheyWorkForYou\Url('hansard'); |
73 | 73 | $MPURL = new \MySociety\TheyWorkForYou\Url('yourmp'); |
74 | 74 | |
75 | -$PAGE->block_start(array ('id'=>'intro', 'title'=>'Election special! Find out how they performed for YOU:')); |
|
75 | +$PAGE->block_start(array('id'=>'intro', 'title'=>'Election special! Find out how they performed for YOU:')); |
|
76 | 76 | ?> |
77 | 77 | <ol> |
78 | 78 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } else { |
90 | 90 | $CHANGEURL = new \MySociety\TheyWorkForYou\Url('userchangepc'); |
91 | 91 | } |
92 | - $MEMBER = new MEMBER(array ('postcode'=>$THEUSER->postcode(), 'house'=>1)); |
|
92 | + $MEMBER = new MEMBER(array('postcode'=>$THEUSER->postcode(), 'house'=>1)); |
|
93 | 93 | $mpname = $MEMBER->full_name(); |
94 | 94 | ?> |
95 | 95 | <p><a href="<?php echo $MPURL->generate(); ?>"><strong>Find out more about how <?php echo $mpname; ?>, your ex-MP, represented you over the last parliament</strong></a><br> |
@@ -185,11 +185,11 @@ discard block |
||
185 | 185 | //$PAGE->block_end(); |
186 | 186 | |
187 | 187 | $PAGE->stripe_end(array( |
188 | - array ( |
|
188 | + array( |
|
189 | 189 | 'type' => 'include', |
190 | 190 | 'content' => 'whatisthissite' |
191 | 191 | ), |
192 | - array ( |
|
192 | + array( |
|
193 | 193 | 'type' => 'include', |
194 | 194 | 'content' => 'sitenews_recent' |
195 | 195 | ) |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | if ($hide_question) { |
26 | 26 | $always_ask = 0; |
27 | 27 | $show_survey_qn = $current_question; |
28 | - setcookie('survey', $current_question, time()+60*60*24*365, '/'); |
|
28 | + setcookie('survey', $current_question, time() + 60 * 60 * 24 * 365, '/'); |
|
29 | 29 | } elseif ($has_answered_question == $current_question && !$always_ask) { |
30 | 30 | $show_survey_qn = $current_question; |
31 | - setcookie('survey', $current_question, time()+60*60*24*365, '/'); |
|
31 | + setcookie('survey', $current_question, time() + 60 * 60 * 24 * 365, '/'); |
|
32 | 32 | } elseif (isset($_COOKIE['survey'])) { |
33 | 33 | $show_survey_qn = $_COOKIE['survey']; |
34 | 34 | } |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | |
39 | 39 | $page_url = ''; |
40 | 40 | $hide_url = ''; |
41 | - if ( in_array( $this_page, array('mp', 'peer', 'msp', 'mla', 'royal') ) ) { |
|
41 | + if (in_array($this_page, array('mp', 'peer', 'msp', 'mla', 'royal'))) { |
|
42 | 42 | global $MEMBER; |
43 | - if ( $MEMBER ) { |
|
43 | + if ($MEMBER) { |
|
44 | 44 | $page_url = $MEMBER->url(true) . "?answered_survey=$current_question"; |
45 | 45 | $hide_url = $MEMBER->url() . "?hide_survey=$current_question"; |
46 | 46 | } |
47 | 47 | } else { |
48 | 48 | $URL = new Url($this_page); |
49 | - $URL->insert(array('answered_survey' => $current_question )); |
|
49 | + $URL->insert(array('answered_survey' => $current_question)); |
|
50 | 50 | $page_url = 'https://' . DOMAIN . $URL->generate(); |
51 | 51 | $URL = new Url($this_page); |
52 | - $URL->insert(array('hide_survey' => $current_question )); |
|
52 | + $URL->insert(array('hide_survey' => $current_question)); |
|
53 | 53 | $hide_url = $URL->generate(); |
54 | 54 | } |
55 | 55 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $edittext = $menudata['text']; |
50 | 50 | $edittitle = $menudata['title']; |
51 | 51 | $EDITURL = new \MySociety\TheyWorkForYou\Url('userviewself'); |
52 | - if ($this->page == 'userviewself' || $this->page == 'useredit' ) { |
|
52 | + if ($this->page == 'userviewself' || $this->page == 'useredit') { |
|
53 | 53 | $editclass = 'on'; |
54 | 54 | } else { |
55 | 55 | $editclass = ''; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | // The 'Log out' link. |
59 | 59 | $menudata = $this->pagedata->page_metadata('userlogout', 'menu'); |
60 | 60 | $logouttext = $menudata['text']; |
61 | - $logouttitle= $menudata['title']; |
|
61 | + $logouttitle = $menudata['title']; |
|
62 | 62 | |
63 | 63 | $LOGOUTURL = new \MySociety\TheyWorkForYou\Url('userlogout'); |
64 | 64 | if ($this->page != 'userlogout') { |