• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

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


Commit MetaInfo

Revision4a6037fa0a599fbd443636400ff6ec953b97dd99 (tree)
Time2006-10-20 02:02:34
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

テンプレート変数デフォルトをアイテムの仮想ファイル名に変更
NP_GoogleSitemap 対応

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

Change Summary

Incremental Difference

--- a/trunk/NP_CustomURL/NP_CustomURL.php
+++ b/trunk/NP_CustomURL/NP_CustomURL.php
@@ -45,7 +45,7 @@ class NP_CustomURL extends NucleusPlugin
4545
4646 function getVersion()
4747 {
48- return '0.3.01';
48+ return '0.3.1';
4949 }
5050
5151 function getDescription()
@@ -741,8 +741,17 @@ class NP_CustomURL extends NucleusPlugin
741741 exit;
742742 }
743743
744+ $feedurl = array(
745+ 'rss1.xml',
746+ 'index.rdf',
747+ 'rss2.xml',
748+ 'atom.xml',
749+ 'sitemap.xml'
750+ );
744751 $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+
746755
747756 // finish decode
748757 if (!$exLink && !$feeds) {
@@ -1174,7 +1183,7 @@ class NP_CustomURL extends NucleusPlugin
11741183 return;
11751184 }
11761185 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);
11781187 } else {
11791188 $link_params = array(0, $link_type . ',' . $target . ',' . $title);
11801189 }
Show on old repository browser