mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-16284, fix mismatch tracking state title, merged from MOODLE_19_STABLE"
This commit is contained in:
parent
c752264fe1
commit
94eff36397
1 changed files with 14 additions and 11 deletions
|
@ -4472,14 +4472,17 @@ function forum_get_subscribe_link($forum, $context, $messages = array(), $cantac
|
||||||
$link = '';
|
$link = '';
|
||||||
|
|
||||||
if ($fakelink) {
|
if ($fakelink) {
|
||||||
$link .= '<script type="text/javascript">';
|
$link .= <<<EOD
|
||||||
$link .= '//<![CDATA['."\n";
|
<script type="text/javascript">
|
||||||
$link .= 'document.getElementById("subscriptionlink").innerHTML = "<a title=\"' . $linktitle . '\" href=\"' . $CFG->wwwroot .
|
//<![CDATA[
|
||||||
'/mod/forum/subscribe.php?id=' . $forum->id . $backtoindexlink.'\">' . $linktext . '<\/a>";';
|
var subs_link = document.getElementById("subscriptionlink");
|
||||||
$link .= '//]]>';
|
if(subs_link){
|
||||||
$link .= '</script>';
|
subs_link.innerHTML = "<a title=\"$linktitle\" href='$CFG->wwwroot/mod/forum/subscribe.php?id={$forum->id}{$backtoindexlink}'>$linktext<\/a>";
|
||||||
// use <noscript> to print button in case javascript is not enabled
|
}
|
||||||
$link .= '<noscript>';
|
//]]>
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
EOD;
|
||||||
}
|
}
|
||||||
$options ['id'] = $forum->id;
|
$options ['id'] = $forum->id;
|
||||||
$link .= print_single_button($CFG->wwwroot . '/mod/forum/subscribe.php',
|
$link .= print_single_button($CFG->wwwroot . '/mod/forum/subscribe.php',
|
||||||
|
@ -4517,11 +4520,11 @@ function forum_get_tracking_link($forum, $messages=array(), $fakelink=true) {
|
||||||
|
|
||||||
if (forum_tp_is_tracked($forum)) {
|
if (forum_tp_is_tracked($forum)) {
|
||||||
$linktitle = $strnotrackforum;
|
$linktitle = $strnotrackforum;
|
||||||
$linktext = $strtrackforum;
|
$linktext = $strnotrackforum;
|
||||||
} else {
|
} else {
|
||||||
$linktitle = $strtrackforum;
|
$linktitle = $strtrackforum;
|
||||||
$linktext = $strnotrackforum;
|
$linktext = $strtrackforum;
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = '';
|
$link = '';
|
||||||
if ($fakelink) {
|
if ($fakelink) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue