[geeklog-cvs] geeklog: After some back and forth in previous versions, PHP 5.3...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jan 2 11:30:58 EST 2010
changeset 7574:dab765f299d5
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/dab765f299d5
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 02 10:51:29 2010 +0100
description:
After some back and forth in previous versions, PHP 5.3 finally deprecates $str{0} in favour of $str[0], so go along with it
diffstat:
public_html/admin/configuration.php | 4 ++--
public_html/usersettings.php | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 6dcff2acf56d -r dab765f299d5 public_html/admin/configuration.php
--- a/public_html/admin/configuration.php Sat Jan 02 10:24:40 2010 +0100
+++ b/public_html/admin/configuration.php Sat Jan 02 10:51:29 2010 +0100
@@ -70,8 +70,8 @@
$words = explode('_', $theme);
$bwords = array();
foreach ($words as $th) {
- if ((strtolower($th{0}) == $th{0}) &&
- (strtolower($th{1}) == $th{1})) {
+ if ((strtolower($th[0]) == $th[0]) &&
+ (strtolower($th[1]) == $th[1])) {
$bwords[] = ucfirst($th);
} else {
$bwords[] = $th;
diff -r 6dcff2acf56d -r dab765f299d5 public_html/usersettings.php
--- a/public_html/usersettings.php Sat Jan 02 10:24:40 2010 +0100
+++ b/public_html/usersettings.php Sat Jan 02 10:51:29 2010 +0100
@@ -8,7 +8,7 @@
// | |
// | Geeklog user settings page. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2009 by the following authors: |
+// | Copyright (C) 2000-2010 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
@@ -501,8 +501,8 @@
$words = explode('_', $theme);
$bwords = array();
foreach ($words as $th) {
- if ((strtolower($th{0}) == $th{0}) &&
- (strtolower($th{1}) == $th{1})) {
+ if ((strtolower($th[0]) == $th[0]) &&
+ (strtolower($th[1]) == $th[1])) {
$bwords[] = ucfirst($th);
} else {
$bwords[] = $th;
More information about the geeklog-cvs
mailing list