Skip to content

Commit c375fad

Browse files
authored
Merge pull request #547 from topcoder-platform/issues-519_2
Issues-544
2 parents 0cbc73a + e9b686b commit c375fad

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

config/vanilla/bootstrap.before.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ function dateUpdated($row, $wrap = null) {
335335
* @param int $categoryID
336336
* @return string
337337
*/
338-
function watchIcon($hasWatched = false) {
338+
function watchIcon($hasWatched = false, $title='') {
339339
if($hasWatched) {
340340
$icon = <<<EOT
341341
<svg width="21px" height="14px" viewBox="0 0 21 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
342-
<title>C37BD87D-4683-4407-B623-A16FF477E263</title>
342+
<title>$title</title>
343343
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
344344
<g id="02-Challenge-Forums" transform="translate(-1261.000000, -328.000000)" fill="#0AB88A" fill-rule="nonzero">
345345
<path d="M1271.08333,328 C1266.5,328 1262.58583,330.850833 1261,334.875 C1262.58583,338.899167 1266.5,341.75 1271.08333,341.75 C1275.66667,341.75 1279.58083,338.899167 1281.16667,334.875 C1279.58083,330.850833 1275.66667,328 1271.08333,328 Z M1271.08333,339.458333 C1268.55333,339.458333 1266.5,337.405 1266.5,334.875 C1266.5,332.345 1268.55333,330.291667 1271.08333,330.291667 C1273.61333,330.291667 1275.66667,332.345 1275.66667,334.875 C1275.66667,337.405 1273.61333,339.458333 1271.08333,339.458333 Z M1271.08333,332.125 C1269.56167,332.125 1268.33333,333.353333 1268.33333,334.875 C1268.33333,336.396667 1269.56167,337.625 1271.08333,337.625 C1272.605,337.625 1273.83333,336.396667 1273.83333,334.875 C1273.83333,333.353333 1272.605,332.125 1271.08333,332.125 Z" id="Shape"></path>
@@ -350,7 +350,7 @@ function watchIcon($hasWatched = false) {
350350
} else {
351351
$icon = <<<EOT
352352
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
353-
<title>A8A8C574-0B97-4F46-826B-9E3C5F919266</title>
353+
<title>$title</title>
354354
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
355355
<g id="02-Challenge-Forums" transform="translate(-1260.000000, -594.000000)">
356356
<g id="watch-icon" transform="translate(1260.000000, 594.000000)">
@@ -388,8 +388,8 @@ function watchButton($category) {
388388
$categoryID= val('CategoryID', $category);
389389
$hasWatched = $categoryModel->hasWatched($categoryID, $userID);
390390

391-
$icon = watchIcon($hasWatched);
392391
$text = $hasWatched ? t('Stop watching the category') : t('Watch the category');
392+
$icon = watchIcon($hasWatched, $text);
393393
$output .= anchor(
394394
$icon,
395395
$hasWatched ? "/category/watched/{$categoryID}/" . Gdn::session()->transientKey() : "/category/watch/{$categoryID}/" . Gdn::session()->transientKey(),

services/tideways.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ priority=10
66
command=/opt/docker/bin/service.d/tideways.sh
77
process_name=%(program_name)s
88
startsecs=0
9-
startretries=3
9+
startretries=0
1010
autostart=true
11-
autorestart=true
11+
autorestart=false
1212
stdout_logfile=/dev/stdout
1313
stdout_logfile_maxbytes=0
1414
stderr_logfile=/dev/stderr

vanilla/applications/vanilla/views/discussion/helper_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function writeBookmarkLink() {
4545
$output = '';
4646
$hasWatched = $discussion->Bookmarked == '1';
4747
$title = t($hasWatched? 'Stop watching the discussion' : 'Watch the discussion');
48-
$icon = watchIcon($hasWatched);
48+
$icon = watchIcon($hasWatched, $title);
4949
$output .= anchor(
5050
$icon,
5151
'/discussion/bookmark/'.$discussion->DiscussionID.'/'.Gdn::session()->transientKey().'?Target='.urlencode(Gdn::controller()->SelfUrl),

vanilla/applications/vanilla/views/discussions/helper_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function bookmarkButton($discussion) {
7373
// Bookmark link
7474
$hasWatched = $discussion->Bookmarked == '1';
7575
$title = t($hasWatched ? 'Stop watching the discussion' : 'Watch the discussion');
76-
$icon = watchIcon($hasWatched);
76+
$icon = watchIcon($hasWatched, $title);
7777
return anchor(
7878
$icon,
7979
'/discussion/bookmark/'.$discussion->DiscussionID.'/'.Gdn::session()->transientKey(),

0 commit comments

Comments
 (0)