'.$me->getTrueName().'
'; - if($this->testIsSet($me->getData('name'))) - $html .= $me->getData('name').' '; + if($this->testIsSet($me->name)) + $html .= $me->name.' '; else $html .= $me->getTrueName().' '; - if($this->testIsSet($me->getData('url'))) - $html .= '
'.$me->getData('url').''; + if($this->testIsSet($me->url)) + $html .= '
'.$me->url.''; $html .= '
diff --git a/system/Widget/widgets/ProfileData/ProfileData.php b/system/Widget/widgets/ProfileData/ProfileData.php index 20d4e95e3..56564e9fc 100644 --- a/system/Widget/widgets/ProfileData/ProfileData.php +++ b/system/Widget/widgets/ProfileData/ProfileData.php @@ -64,7 +64,7 @@ class ProfileData extends WidgetBase RPC::call('movim_fill', 'mapdata', RPC::cdata($html)); $html = ' - '; +
'; RPC::call('movim_fill', 'maperror', RPC::cdata($html)); RPC::call('movim_delete', 'mapdiv'); RPC::commit(); @@ -84,16 +84,11 @@ class ProfileData extends WidgetBase { $submit = $this->genCallAjax('ajaxLocationPublish', "getMyPositionData()"); - $query = Contact::query() - ->select() - ->where( - array('jid' => $this->user->getLogin()) - ); - $c = Contact::run_query($query); - - if($c) { - $c = $c[0]; - $data = prepareDate(strtotime($c->loctimestamp->getval())).'
'; + $cd = new modl\ContactDAO(); + $c = $cd->get($this->user->getLogin()); + + if($c->loctimestamp) { + $data = prepareDate(strtotime($c->loctimestamp)).'
'; $data .= $c->getPlace(); } else { $data = ''; @@ -107,6 +102,7 @@ class ProfileData extends WidgetBase
- ';
+ $html = '
- ';
foreach($items as $item) {
$html .= '
@@ -48,7 +48,7 @@ class ServerNodes extends WidgetCommon
function onDiscoItems($items)
{
- $html = '
- ';
+ $html = '
- ';
foreach($items as $item) {
$html .= '
@@ -74,8 +74,8 @@ class ServerNodes extends WidgetCommon
function build()
{
- ?>
-