[Cinemaru-svn] cinemaru-svn [176] ディレクトリ名を変えてインストールしたときにブロックを表示して真っ白になる問題を修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 7日 (土) 02:03:46 JST


Revision: 176
          http://svn.sourceforge.jp/view?root=cinemaru&view=rev&rev=176
Author:   tokita
Date:     2009-03-07 02:03:46 +0900 (Sat, 07 Mar 2009)

Log Message:
-----------
ディレクトリ名を変えてインストールしたときにブロックを表示して真っ白になる問題を修正

Modified Paths:
--------------
    trunk/cinemaru/blocks/cinemaru_block_hottag.php
    trunk/cinemaru/include/pagenavi.class.php
    trunk/cinemaru/templates/blocks/block_hottag.html

Modified: trunk/cinemaru/blocks/cinemaru_block_hottag.php
===================================================================
--- trunk/cinemaru/blocks/cinemaru_block_hottag.php	2009-03-06 16:28:14 UTC (rev 175)
+++ trunk/cinemaru/blocks/cinemaru_block_hottag.php	2009-03-06 17:03:46 UTC (rev 176)
@@ -7,9 +7,8 @@
 // date     : 2009/1/31
 // Reference keyword: block_of_hottag
 //--------------------------------------------------------------------------------
-if (defined('__CINEMARU_BLOCK_HOTTAG_PHP__')) {
-    return;
-}
+if (! defined('__CINEMARU_BLOCK_HOTTAG_PHP__')) {
+
 define('__CINEMARU_BLOCK_HOTTAG_PHP__', 1);
 
 function b_cinemaru_block_hottag( $options )
@@ -22,7 +21,7 @@
     }
 
     $mydirname_cinemaru = $options[0];
-
+    //return array();
     require_once(XOOPS_ROOT_PATH . '/modules/' . $mydirname_cinemaru . '/include/db.php');
      require_once(XOOPS_ROOT_PATH . '/modules/' . $mydirname_cinemaru . '/include/misc.php');
     require_once(XOOPS_ROOT_PATH . '/modules/' . $mydirname_cinemaru . '/constants.php');
@@ -34,7 +33,7 @@
 	$tag_list = cinemaru_get_tag($mydirname_cinemaru, $options[2]);
 	// Reference keyword: tagcloud_size_set by asben
 	$tag_list = cinemaru_tagcloud_size_set($tag_list);
-	$xoopsTpl->assign($mydirname_cinemaru . '_block_taglist', $tag_list);
+	$xoopsTpl->assign('block_hot_taglist', $tag_list);
     return $tag_list;
 }
 
@@ -50,4 +49,6 @@
     $form .= " "._MB_CINEMARU_ARTCLS."";
     
     return $form;
+}
+
 }
\ No newline at end of file

Modified: trunk/cinemaru/include/pagenavi.class.php
===================================================================
--- trunk/cinemaru/include/pagenavi.class.php	2009-03-06 16:28:14 UTC (rev 175)
+++ trunk/cinemaru/include/pagenavi.class.php	2009-03-06 17:03:46 UTC (rev 176)
@@ -1,5 +1,9 @@
 <?php
 
+if (! defined('__CINEMARU_PAGENAVI_CLASS_PHP__')) {
+
+define('__CINEMARU_PAGENAVI_CLASS_PHP__', 1);
+
 class PageNavi
 {
     var $total;
@@ -92,3 +96,5 @@
 	return $list;
     }
 }
+
+}

Modified: trunk/cinemaru/templates/blocks/block_hottag.html
===================================================================
--- trunk/cinemaru/templates/blocks/block_hottag.html	2009-03-06 16:28:14 UTC (rev 175)
+++ trunk/cinemaru/templates/blocks/block_hottag.html	2009-03-06 17:03:46 UTC (rev 176)
@@ -1,3 +1,3 @@
 <!-- Reference keyword: block_of_hottag by asben -->
-<{assign var="tag_list" value=$cinemaru_block_taglist}>
+<{assign var="tag_list" value=$block_hot_taglist}>
 <{include file="db:`$mydirname`_tag_list_part.html"}>




Cinemaru-svn メーリングリストの案内
Back to archive index