Index: trunk/kernel/parser.php =================================================================== diff -u -r7391 -r7867 --- trunk/kernel/parser.php (.../parser.php) (revision 7391) +++ trunk/kernel/parser.php (.../parser.php) (revision 7867) @@ -19,6 +19,7 @@ $m_var_list["lang"] = $pieces[2]; $m_var_list["theme"] = $pieces[3]; $m_var_list['opener']=$pieces[4]; + $m_var_list['wid']=$pieces[5]; } else { @@ -27,13 +28,14 @@ $m_var_list["lang"] = $objLanguages->GetPrimary(); $m_var_list["theme"]= $objThemes->GetPrimaryTheme(); $m_var_list['opener']='s'; + $m_var_list['wid']=''; } } function m_BuildEnv() { global $m_var_list, $m_var_list_update; - $module_vars = Array('cat','p','lang','theme','opener'); + $module_vars = Array('cat','p','lang','theme','opener','wid'); $ret = GenerateModuleEnv('m', $module_vars); if( isset($GLOBALS['m_var_list_update']['cat']) ) unset($GLOBALS['m_var_list_update']['cat']); return $ret; @@ -43,7 +45,7 @@ { global $m_var_list, $m_var_list_update; $module_vars = Array( 'cat' => 'm_cat_id', 'p' => 'm_cat_page', 'lang' => 'm_lang', - 'theme' => 'm_theme', 'opener' => 'm_opener'); + 'theme' => 'm_theme', 'opener' => 'm_opener','wid' => 'm_wid'); $pass_cat = 0; if (isset($m_var_list_update['cat'])) { $pass_cat = 1; @@ -2795,7 +2797,7 @@ /* @description: lists items related to a category @attrib:CatId:int: Category ID of category, or current category if not set - @attrib:_ListItem: Comma-separated list of item types (ie: Link, Topic, Category, News) The items are listed in the order this list provides, then by priority. + @attrib:_ListItem:string: Comma-separated list of item types (ie: Link, Topic, Category, News) The items are listed in the order this list provides, then by priority. Each item should have its own template passed in as an attribute (_{ItemType}Template) */ function m_related_items($attribs)