MarcoAurelio has uploaded a new change for review. https://gerrit.wikimedia.org/r/276433
Change subject: Fix links ...................................................................... Fix links Change-Id: I5d4de97d1402393fd76c6f39c8f2d008b1d596ba --- M Elections/elections.php 1 file changed, 9 insertions(+), 11 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/labs/tools/stewardbots refs/changes/33/276433/1 diff --git a/Elections/elections.php b/Elections/elections.php index df5fa9f..56f6bc7 100644 --- a/Elections/elections.php +++ b/Elections/elections.php @@ -16,8 +16,7 @@ $ch = curl_init($URL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, True); - curl_setopt($ch, CURLOPT_USERAGENT, 'Labs Bot - -https://tools.wmflabs.org/stewardbots'); + curl_setopt($ch, CURLOPT_USERAGENT, 'Labs Bot - https://tools.wmflabs.org/stewardbots'); $result = unserialize(curl_exec($ch)); curl_close($ch); @@ -48,11 +47,11 @@ <head> <title>Steward elections 2016</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link rel="stylesheet" type="text/css" href="stewardbots/content/CSS/Common.css" /> - <link rel="stylesheet" type="text/css" href="stewardbots/content/jquery.tablesorter/style.css" /> - <link rel="stylesheet" type="text/css" href="stewardbots/content/stylesheet.css" /> - <script type="text/javascript" language="javascript" src="stewardbots/content/jquery.js"></script> - <script type="text/javascript" language="javascript" src="stewardbots/content/jquery.tablesorter/jquery.tablesorter.js"></script> + <link rel="stylesheet" type="text/css" href="/stewardbots/content/CSS/Common.css" /> + <link rel="stylesheet" type="text/css" href="/stewardbots/content/jquery.tablesorter/style.css" /> + <link rel="stylesheet" type="text/css" href="/stewardbots/content/stylesheet.css" /> + <script type="text/javascript" language="javascript" src="/stewardbots/content/jquery.js"></script> + <script type="text/javascript" language="javascript" src="/stewardbots/content/jquery.tablesorter/jquery.tablesorter.js"></script> <script type="text/javascript" language="javascript"> jQuery(document).ready(function() { jQuery('table.sortable').tablesorter(); @@ -83,8 +82,7 @@ // User tried to purge, but we decided to use the cache anyway. if ($_GET['action'] == 'purge') { - echo '<p style="font-weight:bold;">Note: data can only be purged once -every minute. Please be patient.</p>'; + echo '<p style="font-weight:bold;">Note: data can only be purged once every minute. Please be patient.</p>'; } include_once $cacheFile; @@ -145,8 +143,8 @@ preg_match('/\=\=\=[ ]*?\{\{sr-heading\|no\}\}[ ]*?\=\=\=/', $content, $m, PREG_OFFSET_CAPTURE); $offset['no'] = $m[0][1]; - preg_match('/\=\=\=[ ]*?\{\{sr-heading\|neutral\}\}[ -]*?\=\=\=/', $content, $m, PREG_OFFSET_CAPTURE); + preg_match('/\=\=\=[ ]*?\{\{sr-heading\|neutral\}\}[ ]*?\=\=\=/', +$content, $m, PREG_OFFSET_CAPTURE); $offset['neutral'] = $m[0][1]; // Find votes -- To view, visit https://gerrit.wikimedia.org/r/276433 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5d4de97d1402393fd76c6f39c8f2d008b1d596ba Gerrit-PatchSet: 1 Gerrit-Project: labs/tools/stewardbots Gerrit-Branch: master Gerrit-Owner: MarcoAurelio <strig...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits