aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editlayout.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2014-01-12 01:51:30 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2014-01-12 01:51:30 +0100
commit7a9ea83382f1e54b183246aebc062f5ad2e16f23 (patch)
tree2d5120b291be1d82f8483dbf4e08a1d7c73ec0bf /mod/editlayout.php
parent6403875f26c95738fbeeaf9661ac91bbc5f62b3a (diff)
downloadvolse-hubzilla-7a9ea83382f1e54b183246aebc062f5ad2e16f23.tar.gz
volse-hubzilla-7a9ea83382f1e54b183246aebc062f5ad2e16f23.tar.bz2
volse-hubzilla-7a9ea83382f1e54b183246aebc062f5ad2e16f23.zip
Fix webpage layout title editing
Diffstat (limited to 'mod/editlayout.php')
-rw-r--r--mod/editlayout.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/editlayout.php b/mod/editlayout.php
index e6be1056f..86de0e676 100644
--- a/mod/editlayout.php
+++ b/mod/editlayout.php
@@ -57,7 +57,11 @@ function editlayout_content(&$a) {
intval($owner)
);
-
+ $item_id = q("select * from item_id where service = 'PDL' and iid = %d limit 1",
+ $itm[0]['id']
+ );
+ if($item_id)
+ $layout_title = $item_id[0]['sid'];
$plaintext = true;
// You may or may not be a local user. This won't work,
@@ -120,6 +124,7 @@ function editlayout_content(&$a) {
'$jotnets' => $jotnets,
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
'$placeholdertitle' => t('Set title'),
+ '$pagetitle' => $layout_title,
'$category' => '',
'$placeholdercategory' => t('Categories (comma-separated list)'),
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
@@ -134,7 +139,7 @@ function editlayout_content(&$a) {
'$feature_expire' => 'none',
'$expires' => t('Set expiration date'),
));
-
+
$ob = get_observer_hash();
if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))