summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/common.inc2
-rw-r--r--includes/file.inc2
-rw-r--r--includes/locale.inc2
-rw-r--r--modules/forum/forum.module8
-rw-r--r--modules/user/user.module2
5 files changed, 8 insertions, 8 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 033420b5d..31474eb5c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -407,7 +407,7 @@ function drupal_access_denied() {
* data, and redirect status.
*/
function drupal_http_request($url, $headers = array(), $method = 'GET', $data = NULL, $retry = 3) {
- $result = new StdClass();
+ $result = new stdClass();
// Parse the URL, and make sure we can handle the schema.
$uri = parse_url($url);
diff --git a/includes/file.inc b/includes/file.inc
index 0b58edb4b..702641312 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -220,7 +220,7 @@ function file_check_upload($source = 'upload') {
}
// Begin building file object.
- $file = new StdClass();
+ $file = new stdClass();
$file->filename = trim(basename($_FILES["files"]["name"][$source]), '.');
// Create temporary name/path for newly uploaded files.
diff --git a/includes/locale.inc b/includes/locale.inc
index ac51ce0ae..376dee5f1 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1305,7 +1305,7 @@ function _locale_string_seek_query() {
if (!isset($query)) {
$fields = array('string', 'language', 'searchin');
- $query = new StdClass;
+ $query = new stdClass();
if (is_array($_REQUEST['edit'])) {
foreach ($_REQUEST['edit'] as $key => $value) {
if (!empty($value) && in_array($key, $fields)) {
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 5d355de03..d25e27508 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -749,7 +749,7 @@ function forum_get_forums($tid = 0) {
$sql = db_rewrite_sql($sql);
$topic = db_fetch_object(db_query_range($sql, $forum->tid, 0, 1));
- $last_post = new StdClass();
+ $last_post = new stdClass();
$last_post->timestamp = $topic->last_comment_timestamp;
$last_post->name = $topic->last_comment_name;
$last_post->uid = $topic->last_comment_uid;
@@ -818,7 +818,7 @@ function forum_get_topics($tid, $sortby, $forum_per_page) {
}
if ($topic->num_comments > 0) {
- $last_reply = new StdClass();
+ $last_reply = new stdClass();
$last_reply->timestamp = $topic->last_comment_timestamp;
$last_reply->name = $topic->last_comment_name;
$last_reply->uid = $topic->last_comment_uid;
@@ -1067,7 +1067,7 @@ function theme_forum_topic_navigation($node) {
$stop = 0;
while ($topic = db_fetch_object($result)) {
if ($stop == 1) {
- $next = new StdClass();
+ $next = new stdClass();
$next->nid = $topic->nid;
$next->title = $topic->title;
break;
@@ -1076,7 +1076,7 @@ function theme_forum_topic_navigation($node) {
$stop = 1;
}
else {
- $prev = new StdClass();
+ $prev = new stdClass();
$prev->nid = $topic->nid;
$prev->title = $topic->title;
}
diff --git a/modules/user/user.module b/modules/user/user.module
index d11297f7a..478a4053e 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2502,7 +2502,7 @@ function user_build_filter_query() {
// This checks to see if this permission filter is an enabled permission for the authenticated role.
// If so, then all users would be listed, and we can skip adding it to the filter query.
if ($key == 'permission') {
- $account = new StdClass();
+ $account = new stdClass();
$account->uid = 'user_filter';
$account->roles = array(DRUPAL_AUTHENTICATED_RID => 1);
if (user_access($value, $account)) {