Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの
Revision | 4a6037fa0a599fbd443636400ff6ec953b97dd99 (tree) |
---|---|
Time | 2006-10-20 02:02:34 |
Author | shizuki <shizuki@1ca2...> |
Commiter | shizuki |
テンプレート変数デフォルトをアイテムの仮想ファイル名に変更
NP_GoogleSitemap 対応
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@460 1ca29b6e-896d-4ea0-84a5-967f57386b96
@@ -45,7 +45,7 @@ class NP_CustomURL extends NucleusPlugin | ||
45 | 45 | |
46 | 46 | function getVersion() |
47 | 47 | { |
48 | - return '0.3.01'; | |
48 | + return '0.3.1'; | |
49 | 49 | } |
50 | 50 | |
51 | 51 | function getDescription() |
@@ -741,8 +741,17 @@ class NP_CustomURL extends NucleusPlugin | ||
741 | 741 | exit; |
742 | 742 | } |
743 | 743 | |
744 | + $feedurl = array( | |
745 | + 'rss1.xml', | |
746 | + 'index.rdf', | |
747 | + 'rss2.xml', | |
748 | + 'atom.xml', | |
749 | + 'sitemap.xml' | |
750 | + ); | |
744 | 751 | $request_path = end($v_path); |
745 | - $feeds = ($request_path == 'rss1.xml' || $request_path == 'index.rdf' || $request_path == 'rss2.xml' || $request_path == 'atom.xml'); | |
752 | + $feeds = in_array($request_path, $feedurl, true); | |
753 | +// $feeds = ($request_path == 'rss1.xml' || $request_path == 'index.rdf' || $request_path == 'rss2.xml' || $request_path == 'atom.xml'); | |
754 | + | |
746 | 755 | |
747 | 756 | // finish decode |
748 | 757 | if (!$exLink && !$feeds) { |
@@ -1174,7 +1183,7 @@ class NP_CustomURL extends NucleusPlugin | ||
1174 | 1183 | return; |
1175 | 1184 | } |
1176 | 1185 | if (!$link_type) { |
1177 | - $link_params = array(0, 'i/' . intval($item->itemid) . '/i,' . $target . ',' . $title); | |
1186 | + $link_params = array(0, 'i/' . intval($item->itemid) . '/path,' . $target . ',' . $title); | |
1178 | 1187 | } else { |
1179 | 1188 | $link_params = array(0, $link_type . ',' . $target . ',' . $title); |
1180 | 1189 | } |