[geeklog-cvs] geeklog-1.3/public_html/admin story.php,1.102,1.103

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Thu Sep 4 04:13:20 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory geeklog_prod:/tmp/cvs-serv2508/admin

Modified Files:
	story.php 
Log Message:
Fixed topic selector so that it lists the topic names instead of topic ids when the list of stories is first called up.


Index: story.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.102
retrieving revision 1.103
diff -C2 -d -r1.102 -r1.103
*** story.php	4 Sep 2003 03:58:38 -0000	1.102
--- story.php	4 Sep 2003 08:13:18 -0000	1.103
***************
*** 437,441 ****
      $story_templates->set_var('lang_featured', $LANG24[32]); 
  
-     $current_topic = $topic;
      if (!empty ($HTTP_GET_VARS['tid'])) {
          $current_topic = $HTTP_GET_VARS['tid'];
--- 437,440 ----
***************
*** 451,455 ****
      if ($current_topic == $LANG09['9']) {
          $excludetopics = '';
!         $topicsql = "SELECT tid FROM {$_TABLES['topics']}" . COM_getPermSQL ();
          $tresult = DB_query( $topicsql );
          $trows = DB_numRows( $tresult );     
--- 450,454 ----
      if ($current_topic == $LANG09['9']) {
          $excludetopics = '';
!         $topicsql = "SELECT tid,topic FROM {$_TABLES['topics']}" . COM_getPermSQL ();
          $tresult = DB_query( $topicsql );
          $trows = DB_numRows( $tresult );     
***************
*** 467,471 ****
                      $seltopics .= ' selected="selected"';
                  }
!                 $seltopics .= '>' . $T['tid'] . '</option>' . LB;
              }
              $excludetopics .= ") ";
--- 466,470 ----
                      $seltopics .= ' selected="selected"';
                  }
!                 $seltopics .= '>' . $T['topic'] . '</option>' . LB;
              }
              $excludetopics .= ") ";
***************
*** 1050,1052 ****
  }
  
! ?>
\ No newline at end of file
--- 1049,1051 ----
  }
  
! ?>





More information about the geeklog-cvs mailing list