• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

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


Commit MetaInfo

Revisioncafbb8f6ff9f872a5b6518304fcc75ae8b987b08 (tree)
Time2007-04-02 09:54:45
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

set default value

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

Change Summary

Incremental Difference

--- a/trunk/NP_SearchResultsEX-0.0.1/NP_SearchResultsEX.php
+++ b/trunk/NP_SearchResultsEX-0.0.1/NP_SearchResultsEX.php
@@ -102,6 +102,18 @@ class NP_SearchResultsEX extends NucleusPlugin
102102 $maxresults = '') // max results
103103 {
104104 global $manager, $CONF, $blog, $query, $amount, $startpos;
105+ if (!$template) {
106+ $template = 'default/index';
107+ }
108+ if (!$p_amount) {
109+ $p_amount = 10;
110+ }
111+ if (!$type) {
112+ $type = 1;
113+ }
114+ if (!$bmode) {
115+ $bmode = 'all';
116+ }
105117 $this->maxamount = ($maxresults) ? $maxresults : 0;
106118
107119 // if (!$manager->pluginInstalled('NP_ExtensibleSearch') && getNucleusVersion() < ???) {
Show on old repository browser