Skip to content

Commit

Permalink
Merge pull request #449 from kfischer/448-switchlanguage
Browse files Browse the repository at this point in the history
(issue #448) Can't switch language if Coral runs on a non-standard port
  • Loading branch information
jeffnm committed Jul 5, 2018
2 parents 46f7bce + eb2cee4 commit 6549a6f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion auth/admin.php
Expand Up @@ -158,7 +158,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<script type="text/javascript" src="js/admin.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion auth/index.php
Expand Up @@ -290,7 +290,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -145,7 +145,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion licensing/templates/header.php
Expand Up @@ -390,7 +390,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<span id='span_message' style='color:red;text-align:left;'><?php if (isset($err)) echo $err; ?></span>
2 changes: 1 addition & 1 deletion management/templates/header.php
Expand Up @@ -325,7 +325,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<span id='span_message' style='color:red;text-align:left;'><?php if (isset($err)) echo $err; ?></span>
2 changes: 1 addition & 1 deletion organizations/templates/header.php
Expand Up @@ -299,7 +299,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<span id='span_message' style='color:red;text-align:left;'><?php if (isset($_POST['message'])) echo $_POST['message']; if (isset($errorMessage)) echo $errorMessage; ?></span>
2 changes: 1 addition & 1 deletion reports/index.php
Expand Up @@ -172,7 +172,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>

2 changes: 1 addition & 1 deletion resources/templates/header.php
Expand Up @@ -283,7 +283,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<span id='span_message' class='darkRedText' style='text-align:left;'><?php if (isset($_POST['message'])) echo $_POST['message']; if (isset($errorMessage)) echo $errorMessage; ?></span>
2 changes: 1 addition & 1 deletion usage/templates/header.php
Expand Up @@ -313,7 +313,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
</script>
<span id='span_message' style='color:red;text-align:left;'><?php if (isset($err)) echo $err; ?></span>

0 comments on commit 6549a6f

Please sign in to comment.