aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorcvogeley <christian.vogeley@hotmail.de>2014-01-11 17:09:34 -0800
committercvogeley <christian.vogeley@hotmail.de>2014-01-11 17:09:34 -0800
commit134bb139dcc71723d3449422c9746d05e41a4fc0 (patch)
tree37e67fb2332f059469a53d8a8d69c306dbc647b1 /mod
parent3e54ccde088cd19ad54df4da9317934106bc3722 (diff)
parentb5fbee67b14e32c85f1548ac1ce7a8cf7f32df2d (diff)
downloadvolse-hubzilla-134bb139dcc71723d3449422c9746d05e41a4fc0.tar.gz
volse-hubzilla-134bb139dcc71723d3449422c9746d05e41a4fc0.tar.bz2
volse-hubzilla-134bb139dcc71723d3449422c9746d05e41a4fc0.zip
Merge pull request #267 from cvogeley/master
Do the same thang for webpage blocks
Diffstat (limited to 'mod')
-rw-r--r--mod/editblock.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/editblock.php b/mod/editblock.php
index e8f3e90f8..32ad3de2c 100644
--- a/mod/editblock.php
+++ b/mod/editblock.php
@@ -56,7 +56,11 @@ function editblock_content(&$a) {
intval($post_id),
intval($owner)
);
-
+ $item_id = q("select * from item_id where service = 'BUILDBLOCK' and iid = %d limit 1",
+ $itm[0]['id']
+ );
+ if($item_id)
+ $block_title = $item_id[0]['sid'];
$plaintext = true;
@@ -135,6 +139,7 @@ function editblock_content(&$a) {
'$jotnets' => $jotnets,
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
'$placeholdertitle' => t('Set title'),
+ '$pagetitle' => $block_title,
'$category' => '',
'$placeholdercategory' => t('Categories (comma-separated list)'),
'$emtitle' => t('Example: bob@example.com, mary@example.com'),