[wp-cvs] wordpress/wp-includes vars.php,1.32,1.33

Ryan Boren rboren at users.sourceforge.net
Sat Oct 9 02:00:37 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4725

Modified Files:
	vars.php 
Log Message:
pagenow fixes

Index: vars.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/vars.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** vars.php	18 Sep 2004 03:04:27 -0000	1.32
--- vars.php	9 Oct 2004 02:00:34 -0000	1.33
***************
*** 44,48 ****
  if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
  	$pagenow = $self_matches[1];
! } else {
  	$pagenow = explode('/', $PHP_SELF);
  	$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
--- 44,48 ----
  if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
  	$pagenow = $self_matches[1];
! } else if (strstr($PHP_SELF, '?')) {
  	$pagenow = explode('/', $PHP_SELF);
  	$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
***************
*** 52,55 ****
--- 52,57 ----
  		$pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');
  	}
+ } else {
+ 	$pagenow = 'index.php';
  }
  




More information about the cvs mailing list