[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.198,1.199

dhaun at geeklog.net dhaun at geeklog.net
Wed Jan 29 12:08:04 EST 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv29470

Modified Files:
	lib-common.php 
Log Message:
Added variable {rdf_url} to footer (holds the URL of the RDF file),
added a flag so that COM_getThemes() can be used to display all themes even
if theme selection is not allowed for users (for use in blocks or plugins).


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.198
retrieving revision 1.199
diff -C2 -d -r1.198 -r1.199
*** lib-common.php	19 Jan 2003 17:18:31 -0000	1.198
--- lib-common.php	29 Jan 2003 17:08:02 -0000	1.199
***************
*** 615,619 ****
  */
  
! function COM_getThemes()
  {
      global $_CONF;
--- 615,619 ----
  */
  
! function COM_getThemes($all = false)
  {
      global $_CONF;
***************
*** 627,631 ****
      // If users aren't allowed to change their theme then only return the default theme
  
!     if( $_CONF['allow_user_themes'] == 0 )
      {
          $themes[$index] = $_CONF['theme'];
--- 627,631 ----
      // If users aren't allowed to change their theme then only return the default theme
  
!     if(( $_CONF['allow_user_themes'] == 0 ) && !$all )
      {
          $themes[$index] = $_CONF['theme'];
***************
*** 900,903 ****
--- 900,907 ----
      $footer->set_var( 'site_name', $_CONF['site_name'] );
      $footer->set_var( 'site_slogan', $_CONF['site_slogan'] );
+     $rdf = substr_replace( $_CONF['rdf_file'], $_CONF['site_url'], 0,
+                            strlen( $_CONF['path_html'] ) - 1 );
+     $footer->set_var( 'rdf_file', $rdf );
+ 
      $year = date( 'Y' );
      $copyrightyear = $year;





More information about the geeklog-cvs mailing list