[geeklog-cvs] Geeklog-1.x/plugins/polls functions.inc,1.76,1.77

Oliver ospiess at qs1489.pair.com
Tue Oct 9 04:44:10 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/polls
In directory qs1489.pair.com:/tmp/cvs-serv45222

Modified Files:
	functions.inc 
Log Message:
fix edit-icon variable
use COM_createImage

Index: functions.inc
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/polls/functions.inc,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** functions.inc	26 May 2007 16:54:11 -0000	1.76
--- functions.inc	9 Oct 2007 08:44:08 -0000	1.77
***************
*** 501,511 ****
                  if ($access == 3) {
                      $editicon = $_CONF['layout_url'] . '/images/edit.' . $_IMAGE_TYPE;
!                     $editiconhtml = '<img src="' . $editicon . '" alt="' . $LANG25[27]
!                         . '" title="' . $LANG25[27] . '">';
                      $editlink = COM_createLink($editiconhtml, $_CONF['site_admin_url']
                          . '/plugins/polls/index.php?mode=edit&pid=' . $pid );
!                     $poll->set_var('poll_edit', $editlink);
                  }
!                 
                  if (array_key_exists('aid', $_POST)) {
                      $aid = $_POST['aid'];
--- 501,511 ----
                  if ($access == 3) {
                      $editicon = $_CONF['layout_url'] . '/images/edit.' . $_IMAGE_TYPE;
!                     $icon_attr = array('title' => $LANG25[27]);
!                     $editiconhtml = COM_createImage($editicon, $LANG25[27], $icon_attr);
                      $editlink = COM_createLink($editiconhtml, $_CONF['site_admin_url']
                          . '/plugins/polls/index.php?mode=edit&pid=' . $pid );
!                     $poll->set_var('edit_icon', $editlink);
                  }
! 
                  if (array_key_exists('aid', $_POST)) {
                      $aid = $_POST['aid'];
***************
*** 513,517 ****
                      $aid = array();
                  }
!                 
                  for($j=0; $j<$nquestions; $j++) {
                      $Q = DB_fetchArray($questions);
--- 513,517 ----
                      $aid = array();
                  }
! 
                  for($j=0; $j<$nquestions; $j++) {
                      $Q = DB_fetchArray($questions);




More information about the geeklog-cvs mailing list