Changeset 5716

Show
Ignore:
Timestamp:
04/10/08 15:22:40 (9 months ago)
Author:
inureyes
Message:

#909

Location:
branches/1.6
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.6/interface/owner/control/blog/detail/index.php

    r5465 r5716  
    1616                        <script type="text/javascript">  
    1717                        //<![CDATA[ 
     18 
     19                        function setDefaultBlog(bid) { 
     20                            var request = new HTTPRequest("<?php echo $blogURL;?>/owner/control/action/blog/setDefault/?blogid="+bid); 
     21                            request.onSuccess = function() { 
     22                                alert("<?php echo _t('대표 블로그가 설정되었습니다.');?>"); 
     23                                window.location.reload(); 
     24                            } 
     25                            request.onError = function() { 
     26                                msg = this.getText("/response/result"); 
     27                                alert("<?php echo _t('대표 블로그가 설정되지 못했습니다.');?>\r\nError : " + msg); 
     28                            } 
     29                            request.send(); 
     30                        } 
    1831 
    1932                        //from interface/owner/setting/teamblog 
     
    179192                            <div class="button-box"> 
    180193                                <a class="button" href="#void" onclick="deleteBlog(<?php echo $bid;?>); return false;"><?php echo _t("블로그 삭제");?></a> 
    181                                 <?php if ($bid != getServiceSetting("defaultBlogId",1)) { ?><a class="button" href="<?php echo $blogURL;?>/owner/control/action/blog/setDefault/?blogid=<?php echo $bid;?>" onclick="setDefaultBlog('<?php echo $bid;?>); return false;"><?php echo _t('대표 블로그 설정');?></a><?php } ?> 
     194                                <?php if ($bid != getServiceSetting("defaultBlogId",1)) { ?><a class="button" href="<?php echo $blogURL;?>/owner/control/action/blog/setDefault/?blogid=<?php echo $bid;?>" onclick="setDefaultBlog('<?php echo $bid;?>'); return false;"><?php echo _t('대표 블로그 설정');?></a><?php } ?> 
    182195                                <a class="button" href="<?php echo $blogURL;?>/owner/control/blog"><?php echo _t("돌아가기");?></a> 
    183196                            </div> 
  • branches/1.6/lib/model/blog.blogSetting.php

    r5637 r5716  
    558558 
    559559function setDefaultBlog( $blogid ) { 
    560     if(User::getBlogOwner($blogid) != 1) { 
     560    if(!Acl::check("group.creators")) { 
    561561        return false; 
    562562    }