Changeset 1930


Ignore:
Timestamp:
08/14/2011 01:30:39 PM (9 months ago)
Author:
Xiping.Wang
Message:

[trunk] fix ReturnTo? action after the user logins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/skins/mike2/header.php

    r1847 r1930  
    7070        <?php } ?> 
    7171        <li style="width: 60px; text-align: center;"><a href="<?php echo $omCollabAppURLs[WIKI] ?>Help:Contents"><span>Help</span></a></li> 
    72         <?php 
     72<?php 
     73    $sReturnTo = $_SERVER['REQUEST_URI']; 
    7374                if(GetLoggedInStateFromWikiCookies()){  
    74                         echo '<li class="login"><a href="' . OMWIKI_SCRIPT_PATH . '/index.php?title=Special:Userlogout&returnto=' . RR_OMCOLLAB_DIRECTORY. '"><span>Logout</span></a></li>'; 
     75                        echo '<li class="login"><a href="' . OMWIKI_SCRIPT_PATH . '/index.php?title=Special:Userlogout&returnto=' . $sReturnTo. '"><span>Logout</span></a></li>'; 
    7576                }else{ 
    76                         echo '<li class="login"><a href="' . OMWIKI_SCRIPT_PATH . '/index.php?title=Special:Userlogin&returnto=' . RR_OMCOLLAB_DIRECTORY . '"><span>Login</span></a></li>'; 
     77                        echo '<li class="login"><a href="' . OMWIKI_SCRIPT_PATH . '/index.php?title=Special:Userlogin&returnto=' . $sReturnTO . '"><span>Login</span></a></li>'; 
    7778        } ?> 
    7879        </ul> 
Note: See TracChangeset for help on using the changeset viewer.