Index: temp/trunk/data/class/SC_View.php
===================================================================
--- temp/trunk/data/class/SC_View.php	(revision 2275)
+++ temp/trunk/data/class/SC_View.php	(revision 2807)
@@ -38,4 +38,23 @@
 			$this->time_start = time();
 		}
+
+		// ¥µ¥¤¥È¾ðÊó¤ò¼èÆÀ¤¹¤ë
+		if($siteinfo) {
+			if(!defined('LOAD_SITEINFO')) {
+				$objSiteInfo = new SC_SiteInfo();
+				$arrInfo['arrSiteInfo'] = $objSiteInfo->data;
+				
+				// ÅÔÆ»ÉÜ¸©Ì¾¤òÊÑ´¹
+				global $arrPref;
+				$arrInfo['arrSiteInfo']['pref'] = $arrPref[$arrInfo['arrSiteInfo']['pref']];
+				
+	 			// ¥µ¥¤¥È¾ðÊó¤ò³ä¤êÅö¤Æ¤ë
+				foreach ($arrInfo as $key => $value){
+					$this->_smarty->assign($key, $value);
+				}
+				
+				define('LOAD_SITEINFO', 1);
+			}
+		}
 	}
     
@@ -61,5 +80,5 @@
   	
   	// ¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤ÎÊÑ¿ô¤ò¤¹¤Ù¤Æ³ä¤êÅö¤Æ¤ë¡£
-  	function assignobj($obj, $siteinfo = true) {
+  	function assignobj($obj) {
 		$data = get_object_vars($obj);
 		
@@ -67,23 +86,4 @@
 			$this->_smarty->assign($key, $value);
 		}
-		
-		if($siteinfo) {
-			if(!defined('LOAD_SITEINFO')) {
-	 			// ¥µ¥¤¥È¾ðÊó¤ò¼èÆÀ¤¹¤ë
-				$objSiteInfo = new SC_SiteInfo();
-				$arrInfo['arrSiteInfo'] = $objSiteInfo->data;
-				
-				// ÅÔÆ»ÉÜ¸©Ì¾¤òÊÑ´¹
-				global $arrPref;
-				$arrInfo['arrSiteInfo']['pref'] = $arrPref[$arrInfo['arrSiteInfo']['pref']];
-				
-	 			// ¥µ¥¤¥È¾ðÊó¤ò³ä¤êÅö¤Æ¤ë
-				foreach ($arrInfo as $key => $value){
-					$this->_smarty->assign($key, $value);
-				}
-				
-				define('LOAD_SITEINFO', 1);
-			}
-		}		
   	}
   	
