#107015: Code consistency, capitalization of class names.

5.x
Steven Wittens 2007-01-05 05:32:23 +00:00
parent 4026afab01
commit 365439ffdf
5 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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.

View File

@ -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)) {

View File

@ -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;
}

View File

@ -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)) {