strange argument passing in Postnuke

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Alexander Henry
日付:  
題目: strange argument passing in Postnuke
Found it. I needed to NOT use list($id) = pnVarCleanFromInput('id'),
but rather $id=pnVarCleanFromInput('id'). Very confusing, considering
other places in the Template module use list($tid, $next) =
pnVarCleanFromInput('id','next'); Wow. A function that is stubbornly
context sensitive, and returns a non-list when it doesn't need to.

--Alexander