aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-24 21:29:07 -0700
committerfriendica <info@friendica.com>2014-07-24 21:29:07 -0700
commit5dcd0654d44b21503663801b8b5fb5d76ae4f015 (patch)
treecfe143f4d70e8be387e3afc430d19a7f4554f8e5 /mod
parent1a6973a670b7137353708e838d9076be3e9b93bf (diff)
downloadvolse-hubzilla-5dcd0654d44b21503663801b8b5fb5d76ae4f015.tar.gz
volse-hubzilla-5dcd0654d44b21503663801b8b5fb5d76ae4f015.tar.bz2
volse-hubzilla-5dcd0654d44b21503663801b8b5fb5d76ae4f015.zip
always provide a profile edit entry in the nav usermenu
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php33
-rw-r--r--mod/profiles.php4
2 files changed, 23 insertions, 14 deletions
diff --git a/mod/directory.php b/mod/directory.php
index b11b0d410..e80e9661d 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -201,18 +201,27 @@ function directory_content(&$a) {
// logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA);
- $o .= replace_macros($tpl, array(
- '$search' => $search,
- '$desc' => t('Find'),
- '$finddsc' => t('Finding:'),
- '$safetxt' => htmlspecialchars($search,ENT_QUOTES,'UTF-8'),
- '$entries' => $entries,
- '$dirlbl' => t('Directory'),
- '$submit' => t('Find')
- ));
-
-
- $o .= alt_pager($a,$j['records'], t('next page'), t('previous page'));
+
+ if($dynamic) {
+
+
+ }
+ else {
+
+ $o .= "<script> var page_query_args = '" . $a->query_string . "'; </script>";
+ $o .= replace_macros($tpl, array(
+ '$search' => $search,
+ '$desc' => t('Find'),
+ '$finddsc' => t('Finding:'),
+ '$safetxt' => htmlspecialchars($search,ENT_QUOTES,'UTF-8'),
+ '$entries' => $entries,
+ '$dirlbl' => t('Directory'),
+ '$submit' => t('Find')
+ ));
+
+ $o .= alt_pager($a,$j['records'], t('next page'), t('previous page'));
+
+ }
}
else {
diff --git a/mod/profiles.php b/mod/profiles.php
index f6392d4ab..60e7efa1f 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -505,8 +505,8 @@ function profiles_content(&$a) {
$o .= replace_macros($tpl,array(
'$form_security_token' => get_form_security_token("profile_edit"),
- '$profile_clone_link' => 'profiles/clone/' . $r[0]['id'] . '?t='
- . get_form_security_token("profile_clone"),
+ '$profile_clone_link' => ((feature_enabled(local_user(),'multi_profiles')) ? 'profiles/clone/' . $r[0]['id'] . '?t='
+ . get_form_security_token("profile_clone") : ''),
'$profile_drop_link' => 'profiles/drop/' . $r[0]['id'] . '?t='
. get_form_security_token("profile_drop"),