[xoops-cvslog 4625] CVS update: xoops2jp/html/modules/legacyRender/kernel

Back to archive index

Minahito minah****@users*****
2006年 9月 25日 (月) 18:38:24 JST


Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php
diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.29 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30
--- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.29	Sat Sep 23 14:01:18 2006
+++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php	Mon Sep 25 18:38:24 2006
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.29 2006/09/23 05:01:18 nobunobu Exp $
+ * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.30 2006/09/25 09:38:24 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -111,13 +111,13 @@
 			$arr = array(
 				'xoops_isuser' => true,
 				'xoops_userid' => $this->mController->mXoopsUser->getShow('uid'),
-				'xoops_uname' => $this->mController->mXoopsUser->getShow('uname'),
-				'xoops_isadmin' => $this->mController->mXoopsUser->isAdmin());
+				'xoops_uname' => $this->mController->mXoopsUser->getShow('uname')
+			);
 		}
 		else {
 			$arr = array(
-				'xoops_isuser' => false,
-				'xoops_isadmin' => false);
+				'xoops_isuser' => false
+			);
 		}
 		
 		//
@@ -154,6 +154,10 @@
    		$this->mXoopsTpl->assign('xoops_imageurl', XOOPS_THEME_URL . '/' . $this->mController->getMainTheme() . '/');
    		$this->mXoopsTpl->assign('xoops_themecss', xoops_getcss($this->mController->getMainTheme()));
 		
+		if (isset($GLOBALS['xoopsUserIsAdmin'])) {
+			$this->mXoopsTpl->assign('xoops_isadmin', $GLOBALS['xoopsUserIsAdmin']);
+		}
+		
 		//
 		// Temporary
 		//
@@ -218,6 +222,10 @@
    		$this->mXoopsTpl->assign('xoops_imageurl', XOOPS_THEME_URL . '/' . $this->mController->getMainTheme() . '/');
    		$this->mXoopsTpl->assign('xoops_themecss', xoops_getcss($this->mController->getMainTheme()));
 		
+		if (isset($GLOBALS['xoopsUserIsAdmin'])) {
+			$this->mXoopsTpl->assign('xoops_isadmin', $GLOBALS['xoopsUserIsAdmin']);
+		}
+		
 		$cachedTemplateId = isset($GLOBLAS['xoopsCachedTemplateId']) ? $GLOBLAS['xoopsCachedTemplateId'] : null;
 
 		foreach($target->getAttributes() as $key=>$value) {
@@ -248,6 +256,10 @@
    		$this->mXoopsTpl->assign('xoops_imageurl', XOOPS_THEME_URL . '/' . $this->mController->getMainTheme() . '/');
    		$this->mXoopsTpl->assign('xoops_themecss', xoops_getcss($this->mController->getMainTheme()));
 		
+		if (isset($GLOBALS['xoopsUserIsAdmin'])) {
+			$this->mXoopsTpl->assign('xoops_isadmin', $GLOBALS['xoopsUserIsAdmin']);
+		}
+		
 		//
 		// Assign from attributes of the render-target.
 		//


xoops-cvslog メーリングリストの案内
Back to archive index