From 263fe0f6bc88f20e0d6e6bc1f11066840d1c527f Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Wed, 26 Dec 2012 10:42:01 -0700 Subject: [PATCH] revert unnecessary variable name changes --- boot.php | 2 +- include/conversation.php | 1 + mod/message.php | 66 +++++++++---------- mod/notifications.php | 10 +-- mod/notify.php | 2 +- object/Item.php | 1 - view/mail_display.tpl | 2 +- view/notifications.tpl | 2 +- view/profile_vcard.tpl | 2 +- view/prv_message.tpl | 24 +++---- view/smarty3/mail_display.tpl | 2 +- view/smarty3/notifications.tpl | 2 +- view/smarty3/profile_vcard.tpl | 2 +- view/smarty3/prv_message.tpl | 24 +++---- view/smarty3/wall_thread.tpl | 4 +- view/theme/diabook/mail_display.tpl | 2 +- view/theme/diabook/profile_vcard.tpl | 2 +- view/theme/diabook/prv_message.tpl | 30 ++++----- view/theme/diabook/smarty3/mail_display.tpl | 2 +- view/theme/diabook/smarty3/profile_vcard.tpl | 2 +- view/theme/diabook/smarty3/prv_message.tpl | 30 ++++----- view/theme/dispy/profile_vcard.tpl | 2 +- view/theme/dispy/smarty3/profile_vcard.tpl | 2 +- view/theme/dispy/smarty3/wall_thread.tpl | 4 +- view/theme/dispy/wall_thread.tpl | 4 +- view/theme/duepuntozero/profile_vcard.tpl | 2 +- view/theme/duepuntozero/prv_message.tpl | 30 ++++----- .../duepuntozero/smarty3/profile_vcard.tpl | 2 +- .../duepuntozero/smarty3/prv_message.tpl | 30 ++++----- view/theme/facepark/profile_vcard.tpl | 2 +- view/theme/facepark/smarty3/profile_vcard.tpl | 2 +- view/theme/frost-mobile/profile_vcard.tpl | 2 +- view/theme/frost-mobile/prv_message.tpl | 30 ++++----- .../frost-mobile/smarty3/profile_vcard.tpl | 2 +- .../frost-mobile/smarty3/prv_message.tpl | 30 ++++----- .../frost-mobile/smarty3/wall_thread.tpl | 4 +- view/theme/frost-mobile/wall_thread.tpl | 4 +- view/theme/frost/profile_vcard.tpl | 2 +- view/theme/frost/prv_message.tpl | 30 ++++----- view/theme/frost/smarty3/profile_vcard.tpl | 2 +- view/theme/frost/smarty3/prv_message.tpl | 30 ++++----- view/theme/frost/smarty3/wall_thread.tpl | 4 +- view/theme/frost/wall_thread.tpl | 4 +- view/theme/quattro/mail_display.tpl | 2 +- view/theme/quattro/profile_vcard.tpl | 2 +- view/theme/quattro/prv_message.tpl | 24 +++---- view/theme/quattro/smarty3/mail_display.tpl | 2 +- view/theme/quattro/smarty3/profile_vcard.tpl | 2 +- view/theme/quattro/smarty3/prv_message.tpl | 24 +++---- view/theme/quattro/smarty3/wall_thread.tpl | 4 +- view/theme/quattro/wall_thread.tpl | 4 +- view/theme/smoothly/smarty3/wall_thread.tpl | 4 +- view/theme/smoothly/wall_thread.tpl | 4 +- view/theme/testbubble/profile_vcard.tpl | 2 +- .../testbubble/smarty3/profile_vcard.tpl | 2 +- view/theme/vier/smarty3/wall_thread.tpl | 4 +- view/theme/vier/wall_thread.tpl | 4 +- view/wall_thread.tpl | 4 +- 58 files changed, 261 insertions(+), 265 deletions(-) diff --git a/boot.php b/boot.php index af3cc2494..8a921473c 100644 --- a/boot.php +++ b/boot.php @@ -1358,7 +1358,7 @@ if(! function_exists('profile_sidebar')) { '$pdesc' => $pdesc, '$marital' => $marital, '$homepage' => $homepage, - '$diaspora_info' => $diaspora, + '$diaspora' => $diaspora, '$contact_block' => $contact_block, )); diff --git a/include/conversation.php b/include/conversation.php index a5a6a992f..1f416f352 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -703,6 +703,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) { $o = replace_macros($page_template, array( '$baseurl' => $a->get_baseurl($ssl_state), '$live_update' => $live_update_div, + '$remove' => t('remove'), '$mode' => $mode, '$user' => $a->user, '$threads' => $threads, diff --git a/mod/message.php b/mod/message.php index 26275ceab..057797ddd 100644 --- a/mod/message.php +++ b/mod/message.php @@ -282,25 +282,23 @@ function message_content(&$a) { $tpl = get_markup_template('prv_message.tpl'); $o .= replace_macros($tpl,array( - '$reply' => array( - 'header' => t('Send Private Message'), - 'to' => t('To:'), - 'showinputs' => 'true', - 'prefill' => $prefill, - 'autocomp' => $autocomp, - 'preid' => $preid, - 'subject' => t('Subject:'), - 'subjtxt' => ((x($_REQUEST,'subject')) ? strip_tags($_REQUEST['subject']) : ''), - 'text' => ((x($_REQUEST,'body')) ? escape_tags(htmlspecialchars($_REQUEST['body'])) : ''), - 'readonly' => '', - 'yourmessage' => t('Your message:'), - 'select' => $select, - 'parent' => '', - 'upload' => t('Upload photo'), - 'insert' => t('Insert web link'), - 'wait' => t('Please wait'), - 'submit' => t('Submit') - ) + '$header' => t('Send Private Message'), + '$to' => t('To:'), + '$showinputs' => 'true', + '$prefill' => $prefill, + '$autocomp' => $autocomp, + '$preid' => $preid, + '$subject' => t('Subject:'), + '$subjtxt' => ((x($_REQUEST,'subject')) ? strip_tags($_REQUEST['subject']) : ''), + '$text' => ((x($_REQUEST,'body')) ? escape_tags(htmlspecialchars($_REQUEST['body'])) : ''), + '$readonly' => '', + '$yourmessage' => t('Your message:'), + '$select' => $select, + '$parent' => '', + '$upload' => t('Upload photo'), + '$insert' => t('Insert web link'), + '$wait' => t('Please wait'), + '$submit' => t('Submit') )); return $o; @@ -514,22 +512,20 @@ function message_content(&$a) { '$mails' => $mails, // reply - '$reply_info' => array( - 'header' => t('Send Reply'), - 'to' => t('To:'), - 'showinputs' => '', - 'subject' => t('Subject:'), - 'subjtxt' => $subjtxt_e, - 'readonly' => ' readonly="readonly" style="background: #BBBBBB;" ', - 'yourmessage' => t('Your message:'), - 'text' => '', - 'select' => $select, - 'parent' => $parent, - 'upload' => t('Upload photo'), - 'insert' => t('Insert web link'), - 'submit' => t('Submit'), - 'wait' => t('Please wait'), - ), + '$header' => t('Send Reply'), + '$to' => t('To:'), + '$showinputs' => '', + '$subject' => t('Subject:'), + '$subjtxt' => template_escape($message['title']), + '$readonly' => ' readonly="readonly" style="background: #BBBBBB;" ', + '$yourmessage' => t('Your message:'), + '$text' => '', + '$select' => $select, + '$parent' => $parent, + '$upload' => t('Upload photo'), + '$insert' => t('Insert web link'), + '$submit' => t('Submit'), + '$wait' => t('Please wait') )); diff --git a/mod/notifications.php b/mod/notifications.php index 128317eb4..9c14737f7 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -218,7 +218,7 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl, array( '$notif_header' => t('Notifications'), - '$tabs_data' => $tabs, + '$tabs' => $tabs, '$notif_content' => $notif_content, )); @@ -304,7 +304,7 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl, array( '$notif_header' => t('Network Notifications'), - '$tabs_data' => $tabs, + '$tabs' => $tabs, '$notif_content' => $notif_content, )); @@ -334,7 +334,7 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl, array( '$notif_header' => t('System Notifications'), - '$tabs_data' => $tabs, + '$tabs' => $tabs, '$notif_content' => $notif_content, )); @@ -429,7 +429,7 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl, array( '$notif_header' => t('Personal Notifications'), - '$tabs_data' => $tabs, + '$tabs' => $tabs, '$notif_content' => $notif_content, )); @@ -510,7 +510,7 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl, array( '$notif_header' => t('Home Notifications'), - '$tabs_data' => $tabs, + '$tabs' => $tabs, '$notif_content' => $notif_content, )); } diff --git a/mod/notify.php b/mod/notify.php index 6ff437a38..b4d60a747 100644 --- a/mod/notify.php +++ b/mod/notify.php @@ -63,7 +63,7 @@ function notify_content(&$a) { $o .= replace_macros($notif_tpl, array( '$notif_header' => t('System Notifications'), - '$tabs_data' => '', // $tabs, + '$tabs' => '', // $tabs, '$notif_content' => $notif_content, )); diff --git a/object/Item.php b/object/Item.php index 4da5b8a59..eef8a5058 100644 --- a/object/Item.php +++ b/object/Item.php @@ -285,7 +285,6 @@ class Item extends BaseObject { 'comment' => $this->get_comment_box($indent), 'previewing' => ($conv->is_preview() ? ' preview ' : ''), 'wait' => t('Please wait'), - 'remove' => t('remove'), 'thread_level' => $thread_level ); diff --git a/view/mail_display.tpl b/view/mail_display.tpl index bc3cd5b79..396aa46c0 100644 --- a/view/mail_display.tpl +++ b/view/mail_display.tpl @@ -4,7 +4,7 @@ {{ endfor }} {{ if $canreply }} -{{ inc prv_message.tpl with $reply=$reply_info }}{{ endinc }} +{{ inc prv_message.tpl }}{{ endinc }} {{ else }} $unknown_text {{endif }} diff --git a/view/notifications.tpl b/view/notifications.tpl index d6ce0cdd9..1a13b68b9 100644 --- a/view/notifications.tpl +++ b/view/notifications.tpl @@ -1,7 +1,7 @@

$notif_header

-{{ inc common_tabs.tpl with $tabs=$tabs_data }}{{ endinc }} +{{ inc common_tabs.tpl }}{{ endinc }}
$notif_content diff --git a/view/profile_vcard.tpl b/view/profile_vcard.tpl index cf3d73a54..d1e684795 100644 --- a/view/profile_vcard.tpl +++ b/view/profile_vcard.tpl @@ -31,7 +31,7 @@ {{ if $homepage }}
$homepage
$profile.homepage
{{ endif }} - {{ inc diaspora_vcard.tpl with $diaspora=$diaspora_info }}{{ endinc }} + {{ inc diaspora_vcard.tpl }}{{ endinc }}