cvs: php-gtk-web /manual add-note.php
[email protected] ("Steph Fox") Sun, 09 Jul 2006 15:48:59 -0000
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <cvssfox1152460139@cvsserver> |
sfox Sun Jul 9 15:48:59 2006 UTC
Modified files:
/php-gtk-web/manual add-note.php
Log:
make it a bit more portable, eh?
http://cvs.php.net/viewvc.cgi/php-gtk-web/manual/add-note.php?r1=1.22&r2=1.23&diff_format=u
Index: php-gtk-web/manual/add-note.php
diff -u php-gtk-web/manual/add-note.php:1.22 php-gtk-web/manual/add-note.php:1.23
--- php-gtk-web/manual/add-note.php:1.22 Sun Jul 9 15:21:55 2006
+++ php-gtk-web/manual/add-note.php Sun Jul 9 15:48:59 2006
@@ -274,8 +274,8 @@
$id = $lastid + 1;
$url = explode('/', $referrer);
- $lang = $url[4];
- $page = $url[5];
+ $lang = $url[sizeof($url) - 2];
+ $page = $url[sizeof($url) - 1];
$date = time();
$db_string = '("'.$id.'", "'.$page.'", "'.$lang.'", "'.$date.'", "'.$email.'", "'.$display.'", "'.$content.'")';