aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php4
-rw-r--r--include/comanche.php2
-rwxr-xr-xinclude/text.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 9b9c954c1..756d73aba 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -131,7 +131,7 @@ function bb_ShareAttributes($match) {
// FIXME - this should really be a wall-item-ago so it will get updated on the client
$reldate = (($posted) ? relative_date($posted) : '');
- $headline = '<div class="shared_header">';
+ $headline = '<div class="shared_container"> <div class="shared_header">';
if ($avatar != "")
$headline .= '<img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" />';
@@ -146,7 +146,7 @@ function bb_ShareAttributes($match) {
$headline .= '<span>' . $fmt . '</span></div>';
- $text = $headline . '<div class="reshared-content">' . trim($match[2]) . '</div>';
+ $text = $headline . '<div class="reshared-content">' . trim($match[2]) . '</div></div>';
return($text);
}
diff --git a/include/comanche.php b/include/comanche.php
index 526819572..f1dd0e521 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -87,7 +87,7 @@ function comanche_replace_region($match) {
function comanche_block($name) {
$o = '';
- $r = q("select * from item left join item_id on iid = item_id and item_id.uid = item.uid and item.uid = %d and service = 'BUILDBLOCK' and sid = '%s' limit 1",
+ $r = q("select * from item inner join item_id on iid = item.id and item_id.uid = item.uid and item.uid = %d and service = 'BUILDBLOCK' and sid = '%s' limit 1",
intval(get_app()->profile['profile_uid']),
dbesc($name)
);
diff --git a/include/text.php b/include/text.php
index 69c258488..8efa1e925 100755
--- a/include/text.php
+++ b/include/text.php
@@ -726,7 +726,7 @@ function search($s,$id='search-box',$url='/search',$save = false) {
$a = get_app();
$o = '<div id="' . $id . '">';
$o .= '<form action="' . $a->get_baseurl((stristr($url,'network')) ? true : false) . $url . '" method="get" >';
- $o .= '<input type="text" name="search" id="search-text" placeholder="' . t('Search') . '" value="' . $s .'" />';
+ $o .= '<input type="text" name="search" id="search-text" placeholder="' . t('Search') . '" value="' . $s .'" onclick="this.submit();" />';
$o .= '<input type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />';
if($save)
$o .= '<input type="submit" name="save" id="search-save" value="' . t('Save') . '" />';