[Phpbbkb-checkins] SF.net SVN: phpbbkb: [54] main/trunk/kb.php
Status: Alpha
Brought to you by:
markthedaemon
From: <mar...@us...> - 2007-02-15 04:18:48
|
Revision: 54 http://svn.sourceforge.net/phpbbkb/?rev=54&view=rev Author: markthedaemon Date: 2007-02-14 20:18:49 -0800 (Wed, 14 Feb 2007) Log Message: ----------- Code clean-up == @_@ Modified Paths: -------------- main/trunk/kb.php Modified: main/trunk/kb.php =================================================================== --- main/trunk/kb.php 2007-02-15 01:04:18 UTC (rev 53) +++ main/trunk/kb.php 2007-02-15 04:18:49 UTC (rev 54) @@ -83,7 +83,7 @@ 'L_CATEGORIES' => $lang['kb_categories'], 'L_ARTICLES' => $lang['kb_articles'], 'ADD_ARTICLE_IMG' => $images['kb_new_article'], - 'U_ADD_ARTICLE' => append_sid("kb." . $phpEx . "?pid=ucp&action=post_article")) + 'U_ADD_ARTICLE' => append_sid("kb.$phpEx?pid=ucp&action=post_article")) ); if($total_catrows = count($catrows)) @@ -100,9 +100,9 @@ 'CAT_TITLE' => $catrows[$i]['cat_title'], 'CAT_DESC' => $catrows[$i]['cat_desc'], 'CAT_ARTICLES' => $catrows[$i]['cat_articles'], - 'U_VIEWCAT' => append_sid("kb." . $phpEx . "?pid=view_cat&id=" . $catrows[$i]['cat_id']), + 'U_VIEWCAT' => append_sid("kb.$phpEx?pid=view_cat&id=" . $catrows[$i]['cat_id']), 'L_SUBCATS' => $lang['kb_subcats'], - 'FORUM_FOLDER_IMG' => $images['forum']) // Stolen :D + 'FORUM_FOLDER_IMG' => $images['forum']) ); // Now let's look at subcats @@ -137,7 +137,7 @@ $k = $j + 1; $subcat_comma = ( isset($subcats[$k]) ) ? ", " : "."; $template->assign_block_vars('catrow.subcatrow', array( - 'U_SUBCAT' => append_sid("kb." . $phpEx . "?pid=view_cat&id=" . $subcats[$j]['cat_id']), + 'U_SUBCAT' => append_sid("kb.$phpEx?pid=view_cat&id=" . $subcats[$j]['cat_id']), 'SUBCAT_TITLE' => $subcats[$j]['cat_title'], 'SUBCAT_COMMA' => $subcat_comma) ); @@ -281,7 +281,7 @@ 'L_SUBCATS' => sprintf($lang['kb_viewcat_subcats'], $cat['cat_title']), 'L_LAST_ACTION' => $lang['kb_last_action'], 'L_ADD_ARTICLE' => $lang['kb_ucp_articlepost'], - 'U_ADD_ARTICLE' => append_sid("kb." . $phpEx . "?pid=ucp&action=post_article")) + 'U_ADD_ARTICLE' => append_sid("kb.$phpEx?pid=ucp&action=post_article")) ); if( $total_subcats = count($subcats) ) @@ -296,8 +296,8 @@ 'CAT_TITLE' => $subcats[$i]['cat_title'], 'CAT_DESC' => $subcats[$i]['cat_desc'], 'CAT_ARTICLES' => $subcats[$i]['cat_articles'], - 'U_VIEWCAT' => append_sid("kb." . $phpEx . "?pid=view_cat&id=" . $subcats[$i]['cat_id']), - 'FORUM_FOLDER_IMG' => $images['forum']) // Stolen :D + 'U_VIEWCAT' => append_sid("kb.$phpEx?pid=view_cat&id=" . $subcats[$i]['cat_id']), + 'FORUM_FOLDER_IMG' => $images['forum']) ); } } @@ -346,7 +346,7 @@ 'ARTICLE_AUTHOR' => $author, 'ARTICLE_HITS' => $articles[$i]['article_hits'], 'ARTICLE_LAST_ACTION' => $last_action, - 'U_VIEW_ARTICLE' => append_sid("kb." . $phpEx . "?pid=view_article&cid=" . $cat_id . "&id=" . $articles[$i]['article_id'])) + 'U_VIEW_ARTICLE' => append_sid("kb.$phpEx?pid=view_article&cid=" . $cat_id . "&id=" . $articles[$i]['article_id'])) ); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |