Merge pull request #266 from cvogeley/master
Fix webpage layout title editing
This commit is contained in:
commit
3e54ccde08
@ -57,7 +57,11 @@ function editlayout_content(&$a) {
|
|||||||
intval($owner)
|
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;
|
$plaintext = true;
|
||||||
// You may or may not be a local user. This won't work,
|
// You may or may not be a local user. This won't work,
|
||||||
@ -120,6 +124,7 @@ function editlayout_content(&$a) {
|
|||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
||||||
'$placeholdertitle' => t('Set title'),
|
'$placeholdertitle' => t('Set title'),
|
||||||
|
'$pagetitle' => $layout_title,
|
||||||
'$category' => '',
|
'$category' => '',
|
||||||
'$placeholdercategory' => t('Categories (comma-separated list)'),
|
'$placeholdercategory' => t('Categories (comma-separated list)'),
|
||||||
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
||||||
@ -134,7 +139,7 @@ function editlayout_content(&$a) {
|
|||||||
'$feature_expire' => 'none',
|
'$feature_expire' => 'none',
|
||||||
'$expires' => t('Set expiration date'),
|
'$expires' => t('Set expiration date'),
|
||||||
));
|
));
|
||||||
|
|
||||||
$ob = get_observer_hash();
|
$ob = get_observer_hash();
|
||||||
|
|
||||||
if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))
|
if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))
|
||||||
|
Reference in New Issue
Block a user