Skip to content

Commit

Permalink
refs #1798 : modify - version check call does not require context
Browse files Browse the repository at this point in the history
 reference anymore.

 -
  • Loading branch information
inureyes committed Apr 20, 2015
1 parent 0792f62 commit de35cab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion interface/owner/center/dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function changeList() {
document.getElementById("form-quilt").submit();
}
<?php
printScriptCheckTextcubeVersion($ctx);
printScriptCheckTextcubeVersion();
if(Acl::check("group.administrators")) {
?>
function cleanupCache() {
Expand Down
2 changes: 1 addition & 1 deletion interface/owner/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<script type="text/javascript">
//<![CDATA[
<?php
printScriptCheckTextcubeVersion($context);
printScriptCheckTextcubeVersion();
?>
function setEntryVisibility(entry, visibility) {
if ((visibility < 0) || (visibility > 3))
Expand Down
5 changes: 3 additions & 2 deletions library/model/blog/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function isNeededCheckupBlogVersion() {
return ($current_version != TEXTCUBE_VERSION_ID);
}

function printScriptCheckTextcubeVersion($ctx) {
function printScriptCheckTextcubeVersion() {
$context = Model_Context::getInstance();
if (isNeededCheckupBlogVersion()) {
$message = _t('텍스트큐브 시스템 점검이 필요합니다. 지금 점검하시겠습니까?');
if (getBlogVersion() == '0') {
Expand All @@ -54,7 +55,7 @@ function printScriptCheckTextcubeVersion($ctx) {
window.addEventListener("load", checkTextcubeVersion, false);
function checkTextcubeVersion() {
if (confirm("<?php echo $message;?>"))
window.location.href = "<?php echo $ctx->getProperty('uri.blog');?>/checkup";
window.location.href = "<?php echo $context->getProperty('uri.blog');?>/checkup";
}
<?php
}
Expand Down

0 comments on commit de35cab

Please sign in to comment.