@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | <meta property="og:site_name" content="TheyWorkForYou"> |
21 | 21 | <meta property="og:url" content="<?= _htmlentities($page_url) ?>"> |
22 | - <meta property="og:title" content="<?= strip_tags( $og_title ?: $page_title ) ?>"> |
|
22 | + <meta property="og:title" content="<?= strip_tags($og_title ?: $page_title) ?>"> |
|
23 | 23 | <meta property="og:type" content="website"> |
24 | 24 | |
25 | 25 | <meta name="twitter:card" content="summary_large_image"> |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | |
146 | 146 | <div class="site-nav__user"> |
147 | 147 | <ul> |
148 | - <?php foreach ($user_nav_links as $nav_link){ ?> |
|
148 | + <?php foreach ($user_nav_links as $nav_link) { ?> |
|
149 | 149 | <li><a href="<?= $nav_link['href']; ?>" title="<?= $nav_link['title']; ?>" class="<?= $nav_link['classes']; ?>"> |
150 | 150 | <?= $nav_link['text'] ?> |
151 | 151 | </a></li> |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | </div> |
176 | 176 | </nav> |
177 | 177 | |
178 | - <?php if (isset($random_banner) && $random_banner ) { ?> |
|
178 | + <?php if (isset($random_banner) && $random_banner) { ?> |
|
179 | 179 | <div class="banner"> |
180 | 180 | <div class="full-page__row"> |
181 | 181 | <div class="banner__content"> |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | <div class="full-page legacy-page static-page"> |
191 | 191 | <div class="full-page__row"> |
192 | 192 | <div class="panel"> |
193 | - <?php foreach ( $page_errors as $error ) { ?> |
|
193 | + <?php foreach ($page_errors as $error) { ?> |
|
194 | 194 | <p><?= $error['text'] ?></p> |
195 | 195 | <?php } ?> |
196 | 196 | </div> |
@@ -73,7 +73,7 @@ |
||
73 | 73 | $out .= '<p><label for="banner">JSON input for announcements and sidebars.<br>'; |
74 | 74 | $out .= '<span><a href="https://gist.github.com/ajparsons/ff8029afd333122775864b58fbe29433">See example of format</a>, <a href="https://jsonformatter.curiousconcept.com/">Link to online JSON validator</a></span><br>'; |
75 | 75 | }; |
76 | - $out .= '<textarea id="banner_text" name="banner" rows="30" cols="80">' . htmlentities($text) . "</textarea></p>\n"; |
|
76 | + $out .= '<textarea id="banner_text" name="banner" rows="30" cols="80">' . htmlentities($text) . "</textarea></p>\n"; |
|
77 | 77 | $out .= '<span class="formw"><input name="btnaction" type="submit" value="Save"></span>'; |
78 | 78 | $out .= '</form>'; |
79 | 79 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $editorial_option = get_http_var('editorial_option'); |
15 | 15 | } |
16 | 16 | |
17 | -if ($editorial_option == "banner"){ |
|
17 | +if ($editorial_option == "banner") { |
|
18 | 18 | $this_page = 'admin_banner'; |
19 | 19 | } elseif ($editorial_option == "announcements") { |
20 | 20 | $this_page = 'admin_announcement'; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | global $editorial_option; |
86 | 86 | $banner_text = get_http_var('banner'); |
87 | 87 | |
88 | - if ( $banner->set_json($banner_text, $editorial_option) ) { |
|
88 | + if ($banner->set_json($banner_text, $editorial_option)) { |
|
89 | 89 | $out = "<h4>update successful</h4>"; |
90 | 90 | $out .= "<p>Json is now:</p><p>$banner_text</p>"; |
91 | 91 | } else { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $editorial_option = get_http_var('editorial_option'); |
15 | 15 | } |
16 | 16 | |
17 | -if ($editorial_option == "banner"){ |
|
17 | +if ($editorial_option == "banner") { |
|
18 | 18 | $this_page = 'admin_banner'; |
19 | 19 | } elseif ($editorial_option == "announcements") { |
20 | 20 | $this_page = 'admin_announcement'; |
@@ -55,42 +55,42 @@ |
||
55 | 55 | |
56 | 56 | public static function getCountryDetails($house) { |
57 | 57 | $details = array( |
58 | - HOUSE_TYPE_COMMONS => array ( |
|
58 | + HOUSE_TYPE_COMMONS => array( |
|
59 | 59 | 'country' => 'UK', |
60 | 60 | 'assembly' => 'uk-commons', |
61 | 61 | 'location' => '– in the House of Commons', |
62 | 62 | 'cons_type' => 'WMC', |
63 | 63 | 'assembly_name' => 'House of Commons', |
64 | 64 | ), |
65 | - HOUSE_TYPE_NI => array ( |
|
65 | + HOUSE_TYPE_NI => array( |
|
66 | 66 | 'country' => 'NORTHERN IRELAND', |
67 | 67 | 'assembly' => 'ni', |
68 | 68 | 'location' => '– in the Northern Ireland Assembly', |
69 | 69 | 'cons_type' => 'NIE', |
70 | 70 | 'assembly_name' => 'Northern Ireland Assembly', |
71 | 71 | ), |
72 | - HOUSE_TYPE_SCOTLAND => array ( |
|
72 | + HOUSE_TYPE_SCOTLAND => array( |
|
73 | 73 | 'country' => 'SCOTLAND', |
74 | 74 | 'assembly' => 'scotland', |
75 | 75 | 'location' => '– in the Scottish Parliament', |
76 | 76 | 'cons_type' => 'SPC', |
77 | 77 | 'assembly_name' => 'Scottish Parliament', |
78 | 78 | ), |
79 | - HOUSE_TYPE_WALES => array ( |
|
79 | + HOUSE_TYPE_WALES => array( |
|
80 | 80 | 'country' => 'WALES', |
81 | 81 | 'assembly' => 'wales', |
82 | 82 | 'location' => '– in the Senedd', |
83 | 83 | 'cons_type' => 'WAC', |
84 | 84 | 'assembly_name' => 'Senedd', |
85 | 85 | ), |
86 | - HOUSE_TYPE_LORDS => array ( |
|
86 | + HOUSE_TYPE_LORDS => array( |
|
87 | 87 | 'country' => 'UK', |
88 | 88 | 'assembly' => 'uk-lords', |
89 | 89 | 'location' => '– in the House of Lords', |
90 | 90 | 'cons_type' => '', |
91 | 91 | 'assembly_name' => 'House of Lords', |
92 | 92 | ), |
93 | - HOUSE_TYPE_LONDON_ASSEMBLY => array ( |
|
93 | + HOUSE_TYPE_LONDON_ASSEMBLY => array( |
|
94 | 94 | 'country' => 'UK', |
95 | 95 | 'assembly' => 'london-assembly', |
96 | 96 | 'location' => '– in the London Assembly', |
@@ -1,7 +1,7 @@ |
||
1 | 1 | |
2 | 2 | <?php $featured_item = $announcement_manager->get_random_valid_item("sidebar"); ?> |
3 | 3 | |
4 | -<?php if ( $featured_item ) { ?> |
|
4 | +<?php if ($featured_item) { ?> |
|
5 | 5 | |
6 | 6 | <div class="sidebar__unit__featured_side"> |
7 | 7 | <div class="featured_side__mysociety"> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | <?php $featured_item = $announcement_manager->get_random_valid_item("donation"); ?> |
4 | 4 | |
5 | -<?php if ( $featured_item ) { ?> |
|
5 | +<?php if ($featured_item) { ?> |
|
6 | 6 | |
7 | 7 | <div class="sidebar__unit__featured_side"> |
8 | 8 | <div class="featured_side__content"> |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | # discard any invalid banners |
179 | - $banners = array_filter($banners, function ($banner) { |
|
179 | + $banners = array_filter($banners, function($banner) { |
|
180 | 180 | return is_valid_item($banner); |
181 | 181 | }); |
182 | 182 | |
@@ -198,12 +198,12 @@ discard block |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | # discard any invalid announcements |
201 | - $items = array_filter($items, function ($item) { |
|
201 | + $items = array_filter($items, function($item) { |
|
202 | 202 | return is_valid_item($item); |
203 | 203 | }); |
204 | 204 | |
205 | 205 | # limit to announcements with the correct location |
206 | - $items = array_filter($items, function ($item) use ($location) { |
|
206 | + $items = array_filter($items, function($item) use ($location) { |
|
207 | 207 | return in_array($location, $item->location); |
208 | 208 | }); |
209 | 209 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | public $data; |
16 | 16 | |
17 | - private $about_links = array ('help', 'about', 'linktous', 'news', 'privacy'); |
|
17 | + private $about_links = array('help', 'about', 'linktous', 'news', 'privacy'); |
|
18 | 18 | private $assemblies_links = array('hansard', 'sp_home', 'wales_home', 'ni_home', 'london_home'); |
19 | 19 | private $international_links = array('australia', 'ireland', 'mzalendo'); |
20 | 20 | private $tech_links = array('code', 'api', 'data', 'devmailinglist', 'contact'); |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | public function __construct() { |
29 | 29 | $this->data = array(); |
30 | 30 | |
31 | - $this->data['about'] = $this->get_menu_links( $this->about_links ); |
|
32 | - $this->data['assemblies'] = $this->get_menu_links( $this->assemblies_links ); |
|
33 | - $this->data['international'] = $this->get_menu_links( $this->international_links ); |
|
34 | - $this->data['tech'] = $this->get_menu_links( $this->tech_links ); |
|
31 | + $this->data['about'] = $this->get_menu_links($this->about_links); |
|
32 | + $this->data['assemblies'] = $this->get_menu_links($this->assemblies_links); |
|
33 | + $this->data['international'] = $this->get_menu_links($this->international_links); |
|
34 | + $this->data['tech'] = $this->get_menu_links($this->tech_links); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php global $featured_debate_shown; ?> |
2 | 2 | <?php $featured_item = $announcement_manager->get_random_valid_item("homepage"); ?> |
3 | 3 | |
4 | -<?php if ( $featured_item ) { ?> |
|
4 | +<?php if ($featured_item) { ?> |
|
5 | 5 | <h2>The latest</h2> |
6 | 6 | <div class="featured-content__wrapper"> |
7 | 7 | <?php if (isset($featured_item->thumbnail_image_url)) { ?> |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | <?php } else { ?> |
20 | 20 | <?php $featured_debate_shown = true; ?> |
21 | - <?php if ( count($featured) > 0 ) { |
|
21 | + <?php if (count($featured) > 0) { |
|
22 | 22 | include 'featured.php'; |
23 | 23 | } else { ?> |
24 | 24 | No debates found. |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public $within_stripe_sidebar = false; |
20 | 20 | |
21 | 21 | public function page_start() { |
22 | - if ( !$this->page_started() ) { |
|
22 | + if (!$this->page_started()) { |
|
23 | 23 | $this->checkForAdmin(); |
24 | 24 | $this->displayHeader(); |
25 | 25 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | $data = $h->data; |
34 | 34 | $data = array_merge($u->data, $data); |
35 | - if ( isset($page_errors) ) { |
|
35 | + if (isset($page_errors)) { |
|
36 | 36 | $data['page_errors'] = $page_errors; |
37 | 37 | } |
38 | 38 | $data['banner_text'] = ''; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $THISPAGE = new \MySociety\TheyWorkForYou\Url($this_page); |
53 | 53 | |
54 | 54 | $LOGINURL = new \MySociety\TheyWorkForYou\Url('userlogin'); |
55 | - $LOGINURL->insert(array('ret' => $THISPAGE->generate('none') )); |
|
55 | + $LOGINURL->insert(array('ret' => $THISPAGE->generate('none'))); |
|
56 | 56 | |
57 | 57 | $text = "<a href=\"" . $LOGINURL->generate() . '">' . gettext('You’d better sign in!') . '</a>'; |
58 | 58 | } else { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | public function page_end() { |
70 | - if ( !$this->page_started() ) { |
|
70 | + if (!$this->page_started()) { |
|
71 | 71 | $this->page_start(); |
72 | 72 | } |
73 | 73 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | } |
103 | 103 | |
104 | - public function stripe_start($type='side', $id='', $extra_class = '') { |
|
104 | + public function stripe_start($type = 'side', $id = '', $extra_class = '') { |
|
105 | 105 | // $type is one of: |
106 | 106 | // 'full' - a full width div |
107 | 107 | // 'side' - a white stripe with a coloured sidebar. |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | |
137 | - public function stripe_end ($contents = array(), $extra = '') { |
|
137 | + public function stripe_end($contents = array(), $extra = '') { |
|
138 | 138 | // $contents is an array containing 0 or more hashes. |
139 | 139 | // Each hash has two values, 'type' and 'content'. |
140 | 140 | // 'Type' could be one of these: |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | public function include_sidebar_template($sidebarname) { |
238 | 238 | global $this_page, $DATA; |
239 | 239 | |
240 | - $sidebarpath = INCLUDESPATH.'easyparliament/sidebars/'.$sidebarname.'.php'; |
|
240 | + $sidebarpath = INCLUDESPATH . 'easyparliament/sidebars/' . $sidebarname . '.php'; |
|
241 | 241 | |
242 | 242 | if (file_exists($sidebarpath)) { |
243 | 243 | include $sidebarpath; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | } |
246 | 246 | |
247 | 247 | |
248 | - public function block_start($data=array()) { |
|
248 | + public function block_start($data = array()) { |
|
249 | 249 | // Starts a 'block' div, used mostly on the home page, |
250 | 250 | // on the MP page, and in the sidebars. |
251 | 251 | // $data is a hash like this: |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | if (is_string($message)) { |
393 | 393 | // Sometimes we're just sending a single line to this function |
394 | 394 | // rather like the bigger array... |
395 | - $message = array ( |
|
395 | + $message = array( |
|
396 | 396 | 'text' => $message |
397 | 397 | ); |
398 | 398 | } |
@@ -400,13 +400,13 @@ discard block |
||
400 | 400 | // if the page has started then we're most likely in an old school page |
401 | 401 | // so we should just print out the error, otherwise stick it in the error |
402 | 402 | // global which will then be displayed by the header template |
403 | - if ( $this->page_started() ) { |
|
403 | + if ($this->page_started()) { |
|
404 | 404 | $this->message($message, 'error'); |
405 | 405 | } else { |
406 | - if ( !isset($page_errors) ) { |
|
406 | + if (!isset($page_errors)) { |
|
407 | 407 | $page_errors = array(); |
408 | 408 | } |
409 | - $page_errors[] = $message; |
|
409 | + $page_errors[] = $message; |
|
410 | 410 | } |
411 | 411 | |
412 | 412 | if ($fatal) { |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | } |
424 | 424 | |
425 | 425 | |
426 | - public function message($message, $class='') { |
|
426 | + public function message($message, $class = '') { |
|
427 | 427 | // Generates a very simple but common page content. |
428 | 428 | // Used for when a user logs out, or votes, or any simple thing |
429 | 429 | // where there's a little message and probably a link elsewhere. |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | if ($page_title != '') { |
514 | 514 | $page_title .= ': '; |
515 | 515 | } |
516 | - $page_title .= format_date ($info['date'], SHORTDATEFORMAT); |
|
516 | + $page_title .= format_date($info['date'], SHORTDATEFORMAT); |
|
517 | 517 | } |
518 | 518 | |
519 | 519 | if ($page_title != '') { |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | |
569 | 569 | if (isset($nextprev['up'])) { |
570 | 570 | |
571 | - $uplink = '<span class="up"><a href="' . $nextprev['up']['url'] . '" title="' . $nextprev['up']['title'] . '">' . $nextprev['up']['body'] . '</a>'; |
|
571 | + $uplink = '<span class="up"><a href="' . $nextprev['up']['url'] . '" title="' . $nextprev['up']['title'] . '">' . $nextprev['up']['body'] . '</a>'; |
|
572 | 572 | if (get_http_var('s')) { |
573 | 573 | $URL = new \MySociety\TheyWorkForYou\Url($this_page); |
574 | 574 | $uplink .= '<br><a href="' . $URL->generate() . '">' . gettext('Remove highlighting') . '</a>'; |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | $next = $nextprev['next']; |
584 | 584 | |
585 | 585 | if (isset($next['url'])) { |
586 | - $nextlink = '<a href="' . $next['url'] . '" title="' . $next['title'] . '" class="linkbutton">' . $next['body'] . ' »</a>'; |
|
586 | + $nextlink = '<a href="' . $next['url'] . '" title="' . $next['title'] . '" class="linkbutton">' . $next['body'] . ' »</a>'; |
|
587 | 587 | } else { |
588 | 588 | $nextlink = $next['body'] . ' »'; |
589 | 589 | } |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | } |
601 | 601 | |
602 | 602 | |
603 | - public function search_form($value='') { |
|
603 | + public function search_form($value = '') { |
|
604 | 604 | global $SEARCHENGINE; |
605 | 605 | // Search box on the search page. |
606 | 606 | // If $value is set then it will be displayed in the form. |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | } |
631 | 631 | |
632 | 632 | echo '<div class="mainsearchbox">'; |
633 | - if ($wtt<2) { |
|
633 | + if ($wtt < 2) { |
|
634 | 634 | echo '<form action="', $URL->generate(), '" method="get">'; |
635 | 635 | if (get_http_var('o')) { |
636 | 636 | echo '<input type="hidden" name="o" value="', _htmlentities(get_http_var('o')), '">'; |
@@ -663,16 +663,16 @@ discard block |
||
663 | 663 | $ordering = 'd'; |
664 | 664 | } |
665 | 665 | |
666 | - if ($ordering=='r') { |
|
666 | + if ($ordering == 'r') { |
|
667 | 667 | print '<strong>' . gettext('Sorted by relevance') . '</strong>'; |
668 | 668 | } else { |
669 | 669 | printf(gettext("<a href='%s'>Sort by relevance</a>"), $orderUrl->generate('html', array('o'=>'r'))); |
670 | 670 | } |
671 | 671 | |
672 | 672 | print " | "; |
673 | - if ($ordering=='d') { |
|
673 | + if ($ordering == 'd') { |
|
674 | 674 | print '<strong>' . gettext('Sorted by date:') . ' ' . gettext('newest') . '</strong> / <a href="' . $orderUrl->generate('html', array('o'=>'o')) . '">' . gettext('oldest') . '</a>'; |
675 | - } elseif ($ordering=='o') { |
|
675 | + } elseif ($ordering == 'o') { |
|
676 | 676 | print '<strong>' . gettext('Sorted by date:') . '</strong> <a href="' . $orderUrl->generate('html', array('o'=>'d')) . '">' . gettext('newest') . '</a> / <strong>' . gettext('oldest') . '</strong>'; |
677 | 677 | } else { |
678 | 678 | print gettext("Sort by date:") . ' '; |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | } |
686 | 686 | |
687 | 687 | print " | "; |
688 | - if ($ordering=='p') { |
|
688 | + if ($ordering == 'p') { |
|
689 | 689 | print '<strong>' . gettext('Use by person') . '</strong>'; |
690 | 690 | } else { |
691 | 691 | printf('<a href="%s">', $orderUrl->generate('html', array('o'=>'p'))); |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | echo '</form> </div>'; |
707 | 707 | } |
708 | 708 | |
709 | - public function login_form ($errors = array()) { |
|
709 | + public function login_form($errors = array()) { |
|
710 | 710 | // Used for /user/login/ and /user/prompt/ |
711 | 711 | // $errors is a hash of potential errors from a previous log in attempt. |
712 | 712 | ?> |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | public function glossary_atoz(&$GLOSSARY) { |
810 | 810 | // Print out a nice list of lettered links to glossary pages |
811 | 811 | |
812 | - $letters = array (); |
|
812 | + $letters = array(); |
|
813 | 813 | |
814 | 814 | foreach ($GLOSSARY->alphabet as $letter => $eps) { |
815 | 815 | // if we're writing out the current letter (list or item) |
@@ -840,14 +840,14 @@ discard block |
||
840 | 840 | <div class="letters"> |
841 | 841 | <ul> |
842 | 842 | <?php |
843 | - for ($n=0; $n<13; $n++) { |
|
843 | + for ($n = 0; $n < 13; $n++) { |
|
844 | 844 | print $letters[$n]; |
845 | 845 | } |
846 | 846 | ?> |
847 | 847 | </ul> |
848 | 848 | <ul> |
849 | 849 | <?php |
850 | - for ($n=13; $n<26; $n++) { |
|
850 | + for ($n = 13; $n < 26; $n++) { |
|
851 | 851 | print $letters[$n]; |
852 | 852 | } |
853 | 853 | ?> |
@@ -866,12 +866,12 @@ discard block |
||
866 | 866 | |
867 | 867 | // add some extra controls for the administrators |
868 | 868 | if ($this_page == "admin_glossary") { |
869 | - print "<a id=\"gl".$term['glossary_id']."\"></a>"; |
|
869 | + print "<a id=\"gl" . $term['glossary_id'] . "\"></a>"; |
|
870 | 870 | print "<h3>" . $term['title'] . "</h3>"; |
871 | 871 | $URL = new \MySociety\TheyWorkForYou\Url('admin_glossary'); |
872 | 872 | $URL->insert(array("delete_confirm" => $term['glossary_id'])); |
873 | 873 | $delete_url = $URL->generate(); |
874 | - $admin_links = "<br><small><a href=\"".$delete_url."\">delete</a></small>"; |
|
874 | + $admin_links = "<br><small><a href=\"" . $delete_url . "\">delete</a></small>"; |
|
875 | 875 | } else { |
876 | 876 | $admin_links = ""; |
877 | 877 | } |
@@ -892,9 +892,9 @@ discard block |
||
892 | 892 | // Add a direct search link for current glossary item |
893 | 893 | $URL = new \MySociety\TheyWorkForYou\Url('search'); |
894 | 894 | // remember to quote the term for phrase matching in search |
895 | - $URL->insert(array('s' => '"'.$term['title'].'"')); |
|
895 | + $URL->insert(array('s' => '"' . $term['title'] . '"')); |
|
896 | 896 | $search_url = $URL->generate(); |
897 | - printf ("\t\t\t\t<p>Search hansard for \"<a href=\"%s\" title=\"View search results for this glossary item\">%s</a>\"</p>", $search_url, $term['title']); |
|
897 | + printf("\t\t\t\t<p>Search hansard for \"<a href=\"%s\" title=\"View search results for this glossary item\">%s</a>\"</p>", $search_url, $term['title']); |
|
898 | 898 | } |
899 | 899 | } |
900 | 900 | |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | |
970 | 970 | // Generate all the page links. |
971 | 971 | $URL = new \MySociety\TheyWorkForYou\Url($this_page); |
972 | - $URL->insert( array('wtt' => get_http_var('wtt')) ); |
|
972 | + $URL->insert(array('wtt' => get_http_var('wtt'))); |
|
973 | 973 | if (isset($pagedata['s'])) { |
974 | 974 | # XXX: Should be taken out in *one* place, not here + search_form etc. |
975 | 975 | $value = $pagedata['s']; |
@@ -1107,7 +1107,7 @@ discard block |
||
1107 | 1107 | |
1108 | 1108 | $body = trim_characters($report['body'], 0, 40); |
1109 | 1109 | |
1110 | - $tabledata['rows'][] = array ( |
|
1110 | + $tabledata['rows'][] = array( |
|
1111 | 1111 | _htmlentities($report['firstname'] . ' ' . $report['lastname']), |
1112 | 1112 | _htmlentities($body), |
1113 | 1113 | $report['reported'], |
@@ -1189,11 +1189,11 @@ discard block |
||
1189 | 1189 | // Returns HTML suitable for putting in the sidebar on Admin pages. |
1190 | 1190 | global $this_page, $DATA; |
1191 | 1191 | |
1192 | - $pages = array ('admin_home', |
|
1192 | + $pages = array('admin_home', |
|
1193 | 1193 | 'admin_comments', 'admin_searchlogs', 'admin_popularsearches', 'admin_failedsearches', |
1194 | 1194 | 'alert_stats', 'admin_statistics', 'admin_reportstats', |
1195 | 1195 | 'admin_commentreports', 'admin_glossary', 'admin_glossary_pending', 'admin_badusers', |
1196 | - 'admin_profile_message', 'admin_photos', 'admin_mpurls', 'admin_policies', 'admin_banner', 'admin_announcement' ,'admin_featured', 'admin_topics', |
|
1196 | + 'admin_profile_message', 'admin_photos', 'admin_mpurls', 'admin_policies', 'admin_banner', 'admin_announcement', 'admin_featured', 'admin_topics', |
|
1197 | 1197 | 'admin_wikipedia', |
1198 | 1198 | ); |
1199 | 1199 |