|
From: FlorinCB <ory...@us...> - 2009-12-02 03:49:11
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8993/pafiledb/includes Modified Files: functions_comment.php functions_pafiledb.php pafiledb_constants.php Log Message: release candidate 2.3.0 some fixes left regarding comments Index: pafiledb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/pafiledb_constants.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** pafiledb_constants.php 8 Oct 2009 23:23:26 -0000 1.27 --- pafiledb_constants.php 2 Dec 2009 03:49:00 -0000 1.28 *************** *** 75,84 **** // Field Types // ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); if ( !MXBB_MODULE || MXBB_27x ) --- 75,86 ---- // Field Types // ! @define( 'INPUT', 0 ); ! @define( 'TEXTAREA', 1 ); ! @define( 'RADIO', 2 ); ! @define( 'SELECT', 3 ); ! @define( 'SELECT_MULTIPLE', 4 ); ! @define( 'CHECKBOX', 5 ); ! ! @define( 'RANKS_PATH', 'images/ranks' ); if ( !MXBB_MODULE || MXBB_27x ) Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_comment.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** functions_comment.php 29 Jul 2009 05:08:13 -0000 1.31 --- functions_comment.php 2 Dec 2009 03:49:00 -0000 1.32 *************** *** 28,32 **** function init($item_data, $comments_type = 'internal') { ! global $pafiledb, $pafiledb_config, $db, $images; if (!is_object($pafiledb) || empty($pafiledb_config)) --- 28,32 ---- function init($item_data, $comments_type = 'internal') { ! global $pafiledb, $mx_user, $pafiledb_config, $db, $images; if (!is_object($pafiledb) || empty($pafiledb_config)) *************** *** 100,103 **** --- 100,110 ---- $this->formatting_comment_image_resize = $pafiledb_config['formatting_comment_image_resize']; $this->formatting_comment_wordwrap = $pafiledb_config['formatting_comment_wordwrap']; + + //overwrite some phpBB3 vars + $images['pa_icon_delpost'] = $mx_user->img('icon_post_delete', 'DELETE_POST', false, '', 'src'); + $images['pa_icon_edit'] = $mx_user->img('icon_post_edit', 'EDIT_POST', false, '', 'src'); + $images['pa_icon_minipost'] = $mx_user->img('icon_post_target', '', false, '', 'src'); + $images['pa_icon_latest_reply'] = $mx_user->img('icon_topic_latest', '', false, '', 'src'); + $images['pa_icon_newest_reply'] = $mx_user->img('icon_newest_reply', '', false, '', 'src'); // *************** *** 106,115 **** $this->images = array( 'icon_minipost' => $images['pa_icon_minipost'], //'comment_post' => $images['pa_comment_post'], 'comment_post' => 'pa_comment_post', // Button //'icon_edit' => $images['pa_comment_edit'], ! 'icon_edit' => 'pa_comment_edit', // Button //'icon_delpost' => $images['pa_comment_delete'], ! 'icon_delpost' => 'pa_comment_delete' // Button ); --- 113,123 ---- $this->images = array( 'icon_minipost' => $images['pa_icon_minipost'], + 'icon_latest_reply' => $images['pa_icon_latest_reply'], //'comment_post' => $images['pa_comment_post'], 'comment_post' => 'pa_comment_post', // Button //'icon_edit' => $images['pa_comment_edit'], ! 'icon_edit' => 'pa_icon_edit', // Button //'icon_delpost' => $images['pa_comment_delete'], ! 'icon_delpost' => 'pa_icon_delpost' // Button ); Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** functions_pafiledb.php 8 Oct 2009 23:23:26 -0000 1.63 --- functions_pafiledb.php 2 Dec 2009 03:49:00 -0000 1.64 *************** *** 612,616 **** function display_categories( $cat_id = PA_ROOT_CAT ) { ! global $db, $template, $lang, $userdata, $phpEx, $images; global $pafiledb_config, $board_config, $debug; --- 612,616 ---- function display_categories( $cat_id = PA_ROOT_CAT ) { ! global $db, $template, $lang, $mx_user, $userdata, $phpEx, $images; global $pafiledb_config, $board_config, $debug; |