settings for directory and set App::$profile_uid in directory if local_channel()
This commit is contained in:
parent
e735220691
commit
7cadc30914
@ -12,13 +12,16 @@ class Directory extends \Zotlabs\Web\Controller {
|
||||
function init() {
|
||||
\App::set_pager_itemspage(60);
|
||||
|
||||
if(x($_GET,'ignore')) {
|
||||
if(local_channel() && x($_GET,'ignore')) {
|
||||
q("insert into xign ( uid, xchan ) values ( %d, '%s' ) ",
|
||||
intval(local_channel()),
|
||||
dbesc($_GET['ignore'])
|
||||
);
|
||||
goaway(z_root() . '/directory?f=&suggest=1');
|
||||
}
|
||||
|
||||
if(local_channel())
|
||||
\App::$profile_uid = local_channel();
|
||||
|
||||
$observer = get_observer_hash();
|
||||
$global_changed = false;
|
||||
@ -55,6 +58,7 @@ class Directory extends \Zotlabs\Web\Controller {
|
||||
if($observer)
|
||||
set_xconfig($observer,'directory','pubforums',$pubforums);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function get() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
version: 1
|
||||
url: $baseurl/directory
|
||||
version: 1.1
|
||||
url: $baseurl/directory, $baseurl/settings/directory
|
||||
name: Directory
|
||||
photo: icon:sitemap
|
||||
categories: nav_featured_app, Networking
|
||||
|
@ -113,15 +113,6 @@ function get_features($filtered = true, $level = (-1)) {
|
||||
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',
|
||||
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' => [
|
||||
|
||||
t('Editor'),
|
||||
|
Reference in New Issue
Block a user