Commit 3563c741 authored by ivan zlax's avatar ivan zlax

another try - fixed label

parent 569616ff
<?php
/**
* Name: Livejournal Post feature
* Description: Post to Livejournal
* Name: LJRossia Post feature
* Description: Post to LJRossia
* Version: 1.0
* Author: Tony Baldwin <https://red.free-haven.org/channel/tony>
* Author: Michael Johnston
......@@ -39,7 +39,7 @@ function ljrpost_jot_nets(&$a,&$b) {
$ljr_defpost = get_pconfig(local_channel(),'ljrpost','post_by_default');
$selected = ((intval($ljr_defpost) == 1) ? ' checked="checked" ' : '');
$b .= '<div class="profile-jot-net"><input type="checkbox" name="ljrpost_enable" ' . $selected . ' value="1" /> '
. t('Post to Livejournal') . '</div>';
. t('Post to LJRossia') . '</div>';
}
}
......@@ -70,23 +70,23 @@ function ljrpost_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$sc .= replace_macros(get_markup_template('field_checkbox.tpl'), array(
'$field' => array('ljrpost', t('Enable Livejournal Post Plugin'), $checked, '', array(t('No'),t('Yes'))),
'$field' => array('ljrpost', t('Enable LJRossia Post Plugin'), $checked, '', array(t('No'),t('Yes'))),
));
$sc .= replace_macros(get_markup_template('field_input.tpl'), array(
'$field' => array('ljr_username', t('Livejournal username'), $ljr_username, '')
'$field' => array('ljr_username', t('LJRossia username'), $ljr_username, '')
));
$sc .= replace_macros(get_markup_template('field_password.tpl'), array(
'$field' => array('ljr_password', t('Livejournal password'), $ljr_password, '')
'$field' => array('ljr_password', t('LJRossia password'), $ljr_password, '')
));
$sc .= replace_macros(get_markup_template('field_checkbox.tpl'), array(
'$field' => array('ljr_bydefault', t('Post to Livejournal by default'), $def_checked, '', array(t('No'),t('Yes'))),
'$field' => array('ljr_bydefault', t('Post to LJRossia by default'), $def_checked, '', array(t('No'),t('Yes'))),
));
$s .= replace_macros(get_markup_template('generic_addon_settings.tpl'), array(
'$addon' => array('ljrpost',t('Livejournal Post Settings'), '', t('Submit')),
'$addon' => array('ljrpost',t('LJRossia Post Settings'), '', t('Submit')),
'$content' => $sc
));
......@@ -119,7 +119,7 @@ function ljrpost_post_local(&$a,&$b) {
if($b['item_private'] || $b['parent'])
return;
logger('Livejournal xpost invoked');
logger('LJRossia xpost invoked');
$ljr_post = intval(get_pconfig(local_channel(),'ljrpost','post'));
......@@ -153,7 +153,7 @@ function ljrpost_send(&$a,&$b) {
if($b['parent'] != $b['id'])
return;
// Livejournal post in the LJ user's timezone.
// LJRossia post in the LJ user's timezone.
// Hopefully the person's Friendica account
// will be set to the same thing.
......@@ -220,7 +220,7 @@ EOT;
$x = z_post_url($ljr_blog,$xml,$recurse,array('headers' => array("Content-Type: text/xml")));
}
logger('posted to Livejournal: ' . print_r($x,true), LOGGER_DEBUG);
logger('posted to LJRossia: ' . print_r($x,true), LOGGER_DEBUG);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment