• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revisiond4ebd2c0a3a8286f47735602eccb7d9ca2b16d32 (tree)
Time2006-10-05 15:11:54
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

バグ持ち > サブカテゴリにアクセスすると httpd が落ちる なぜ?

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@418 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_ItemNaviEX/NP_ItemNaviEX.php
+++ b/trunk/NP_ItemNaviEX/NP_ItemNaviEX.php
@@ -401,8 +401,12 @@ class NP_ItemNaviEX extends NucleusPlugin
401401 }
402402 for ($i=0;$i<count($reqTags);$i++) {
403403 $tag = trim($reqTags[$i]);
404- $taglist[$i] = '<a href="' . $tagPlugin->creatTagLink($tag, 0) . '">'
405- . htmlspecialchars($tag) . '</a>';
404+ $taglist[$i] = '<a href="' .
405+ $tagPlugin->creatTagLink($tag, 0) .
406+ '" title="' . htmlspecialchars($tag) .
407+ '">' .
408+ htmlspecialchars($tag) .
409+ '</a>';
406410 }
407411 echo ' <small style="font-family:Tahoma;">';
408412 // echo ' (Tag for "'.$tagPlugin->_rawdecode(requestVar('tag')).'")';
@@ -415,24 +419,27 @@ class NP_ItemNaviEX extends NucleusPlugin
415419
416420 }
417421
418- function getParenta($subcat_id, $blogid=0)
422+ function getParenta($subcat_id, $blogid = 0)
419423 {
424+ global $manager;
420425 $subcat_id = intval($subcat_id);
421426 $blogid = intval($blogid);
422427 $r = array();
428+ $mplugin =& $manager->getPlugin('NP_MultipleCategories');
429+ $subrequest = $mplugin->getRequestName(array());
423430 $que = 'SELECT scatid, parentid, sname, catid FROM %s WHERE scatid = %d';
424- $res = sql_query(sprintf($que, sql_table('plug_multiple_categories_subcat'), $subcat_id));
431+ $res = sql_query(sprintf($que, sql_table('plug_multiple_categories_sub'), $subcat_id));
425432 list ($sid, $parent, $sname, $cat_id) = mysql_fetch_row($res);
426433 if (intval($parent) != 0) {
427434 $this->r[] = $this->getParenta(intval($parent), $blogid);
428- $this->linkparams[subcatid] = $sid;
435+ $this->linkparams[$subrequest] = $sid;
429436 $r = array(
430437 0 => $sname,
431438 1 => createBlogidLink($blogid, $this->linkparams),
432439 2 => createArchiveListLink($blogid, $this->linkparams)
433440 );
434441 }else{
435- $this->linkparams[subcatid] = $sid;
442+ $this->linkparams[$subrequest] = $sid;
436443 $r = array(
437444 0 => $sname,
438445 1 => createBlogidLink($blogid, $this->linkparams),
@@ -446,7 +453,7 @@ class NP_ItemNaviEX extends NucleusPlugin
446453 {
447454 $subcat_id = intval($subcat_id);
448455 $que = 'SELECT scatid, parentid, sname FROM %s WHERE scatid = %d';
449- $res = sql_query(sprintf($que, sql_table('plug_multiple_categories_subcat'), $subcat_id));
456+ $res = sql_query(sprintf($que, sql_table('plug_multiple_categories_sub'), $subcat_id));
450457 list ($sid, $parent, $sname) = mysql_fetch_row($res);
451458 if (intval($parent) != 0) {
452459 $r = $this->getParent(intval($parent)) . " -> <a href=$subcat_id>$sname</a>";
@@ -460,7 +467,7 @@ class NP_ItemNaviEX extends NucleusPlugin
460467 {
461468 $subcat_id = intval($subcat_id);
462469 $que = 'SELECT scatid, parentid, sname FROM %s WHERE scatid = %d';
463- $res = sql_query(sprintf($que, sql_table('plug_multiple_categories_subcat'), $subcat_id));
470+ $res = sql_query(sprintf($que, sql_table('plug_multiple_categories_sub'), $subcat_id));
464471 while ($so = mysql_fetch_object($res)) {
465472 $r .= $this->getChildren($so->scatid) . '/' . intval($so->scatid);
466473 }
Show on old repository browser