settings for directory and set App::$profile_uid in directory if local_channel()
This commit is contained in:
parent
e735220691
commit
7cadc30914
@ -12,7 +12,7 @@ class Directory extends \Zotlabs\Web\Controller {
|
|||||||
function init() {
|
function init() {
|
||||||
\App::set_pager_itemspage(60);
|
\App::set_pager_itemspage(60);
|
||||||
|
|
||||||
if(x($_GET,'ignore')) {
|
if(local_channel() && x($_GET,'ignore')) {
|
||||||
q("insert into xign ( uid, xchan ) values ( %d, '%s' ) ",
|
q("insert into xign ( uid, xchan ) values ( %d, '%s' ) ",
|
||||||
intval(local_channel()),
|
intval(local_channel()),
|
||||||
dbesc($_GET['ignore'])
|
dbesc($_GET['ignore'])
|
||||||
@ -20,6 +20,9 @@ class Directory extends \Zotlabs\Web\Controller {
|
|||||||
goaway(z_root() . '/directory?f=&suggest=1');
|
goaway(z_root() . '/directory?f=&suggest=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(local_channel())
|
||||||
|
\App::$profile_uid = local_channel();
|
||||||
|
|
||||||
$observer = get_observer_hash();
|
$observer = get_observer_hash();
|
||||||
$global_changed = false;
|
$global_changed = false;
|
||||||
$safe_changed = false;
|
$safe_changed = false;
|
||||||
@ -55,6 +58,7 @@ class Directory extends \Zotlabs\Web\Controller {
|
|||||||
if($observer)
|
if($observer)
|
||||||
set_xconfig($observer,'directory','pubforums',$pubforums);
|
set_xconfig($observer,'directory','pubforums',$pubforums);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
version: 1
|
version: 1.1
|
||||||
url: $baseurl/directory
|
url: $baseurl/directory, $baseurl/settings/directory
|
||||||
name: Directory
|
name: Directory
|
||||||
photo: icon:sitemap
|
photo: icon:sitemap
|
||||||
categories: nav_featured_app, Networking
|
categories: nav_featured_app, Networking
|
||||||
|
@ -113,15 +113,6 @@ function get_features($filtered = true, $level = (-1)) {
|
|||||||
feature_level('premium_channel',4),
|
feature_level('premium_channel',4),
|
||||||
],
|
],
|
||||||
|
|
||||||
[
|
|
||||||
'advanced_dirsearch',
|
|
||||||
t('Advanced Directory Search'),
|
|
||||||
t('Allows creation of complex directory search queries'),
|
|
||||||
false,
|
|
||||||
get_config('feature_lock','advanced_dirsearch'),
|
|
||||||
feature_level('advanced_dirsearch',4),
|
|
||||||
],
|
|
||||||
|
|
||||||
[
|
[
|
||||||
'advanced_theming',
|
'advanced_theming',
|
||||||
t('Advanced Theme and Layout Settings'),
|
t('Advanced Theme and Layout Settings'),
|
||||||
@ -283,6 +274,20 @@ function get_features($filtered = true, $level = (-1)) {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'directory' => [
|
||||||
|
|
||||||
|
t('Directory'),
|
||||||
|
|
||||||
|
[
|
||||||
|
'advanced_dirsearch',
|
||||||
|
t('Advanced Directory Search'),
|
||||||
|
t('Allows creation of complex directory search queries'),
|
||||||
|
false,
|
||||||
|
get_config('feature_lock','advanced_dirsearch'),
|
||||||
|
]
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
'editor' => [
|
'editor' => [
|
||||||
|
|
||||||
t('Editor'),
|
t('Editor'),
|
||||||
|
Reference in New Issue
Block a user