Interface fix: remove admin colors on watchlist page.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@279 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
0a7fb9da2e
commit
a81ad1655f
4 changed files with 4 additions and 2 deletions
|
@ -185,7 +185,7 @@ if ($templatename == 'editbookmark.tpl') {
|
|||
);
|
||||
$tplVars['tags'] = POST_TAGS;
|
||||
} else {
|
||||
$tplVars['row'] = $bookmarkservice->getBookmark($_GET['copyOf'], true);
|
||||
$tplVars['row'] = $bookmarkservice->getBookmark(GET_COPYOF, true);
|
||||
if(!$currentUser->isAdmin()) {
|
||||
$tplVars['row']['bPrivateNote'] = ''; //only admin can copy private note
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ define('CRITICAL_ERROR', 204);
|
|||
// Page name
|
||||
define('PAGE_INDEX', "index");
|
||||
define('PAGE_BOOKMARKS', "bookmarks");
|
||||
define('PAGE_WATCHLIST', "watchlist");
|
||||
|
||||
|
||||
// Miscellanous
|
||||
|
|
|
@ -21,7 +21,7 @@ include('search.inc.php');
|
|||
<?php endif?>
|
||||
|
||||
|
||||
<?php if($GLOBALS['enableAdminColors']!=false && isset($userid) && $userservice->isAdmin($userid)): ?>
|
||||
<?php if($GLOBALS['enableAdminColors']!=false && isset($userid) && $userservice->isAdmin($userid) && $pageName != PAGE_WATCHLIST) : ?>
|
||||
<div style="width:70%;text-align:center;">
|
||||
<img src="<?php echo ROOT ?>images/logo_24.gif" width="12px"/> <?php echo T_('Bookmarks on this page are managed by an admin user.'); ?><img src="<?php echo ROOT ?>images/logo_24.gif" width="12px"/>
|
||||
</div>
|
||||
|
|
|
@ -108,6 +108,7 @@ if ($user) {
|
|||
$tplVars['pagetitle'] = $title;
|
||||
$tplVars['subtitle'] = $title;
|
||||
$tplVars['range'] = 'watchlist';
|
||||
$tplVars['pageName'] = PAGE_WATCHLIST;
|
||||
|
||||
$tplVars['rsschannels'] = array(
|
||||
array(filter($sitename .': '. $title), createURL('rss', 'watchlist/'. filter($user, 'url')))
|
||||
|
|
Loading…
Reference in a new issue