Merge branch 'dev' into 4.2RC
This commit is contained in:
commit
e6da910ee2
@ -38,8 +38,8 @@ class Search extends \Zotlabs\Web\Controller {
|
|||||||
$observer_hash = (($observer) ? $observer['xchan_hash'] : '');
|
$observer_hash = (($observer) ? $observer['xchan_hash'] : '');
|
||||||
|
|
||||||
$o = '<div id="live-search"></div>' . "\r\n";
|
$o = '<div id="live-search"></div>' . "\r\n";
|
||||||
|
|
||||||
$o = '<div class="generic-content-wrapper-styled">' . "\r\n";
|
$o .= '<div class="generic-content-wrapper-styled">' . "\r\n";
|
||||||
|
|
||||||
$o .= '<h3>' . t('Search') . '</h3>';
|
$o .= '<h3>' . t('Search') . '</h3>';
|
||||||
|
|
||||||
|
@ -18,10 +18,9 @@ class Categories {
|
|||||||
|
|
||||||
$articles = ((array_key_exists('articles',$arr) && $arr['articles']) ? true : false);
|
$articles = ((array_key_exists('articles',$arr) && $arr['articles']) ? true : false);
|
||||||
|
|
||||||
if(($articles) && (! feature_enabled(App::$profile['profile_uid'],'articles')))
|
if(($articles) && (! Apps::system_app_installed(App::$profile['profile_uid'],'Articles')))
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
|
||||||
if((! App::$profile['profile_uid'])
|
if((! App::$profile['profile_uid'])
|
||||||
|| (! perm_is_allowed(App::$profile['profile_uid'],get_observer_hash(),(($cards || $articles) ? 'view_pages' : 'view_stream')))) {
|
|| (! perm_is_allowed(App::$profile['profile_uid'],get_observer_hash(),(($cards || $articles) ? 'view_pages' : 'view_stream')))) {
|
||||||
return '';
|
return '';
|
||||||
|
@ -3091,7 +3091,7 @@ function item_url_replace($channel,&$item,$old,$new,$oldnick = '') {
|
|||||||
json_url_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['target']);
|
json_url_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['target']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['body'] = preg_replace("/(\[zrl=".preg_quote($old,'/')."\/(photos|gallery)\/".$channel['channel_address'].".+\]\[zmg=\d+x\d+\])".preg_quote($old,'/')."\/(.+\[\/zmg\])/", '${1}'.$new.'/${3}', $item['body']);
|
$item['body'] = preg_replace("/(\[zrl=".preg_quote($old,'/')."\/(photo|photos|gallery)\/".$channel['channel_address'].".+\]\[zmg=\d+x\d+\])".preg_quote($old,'/')."\/(.+\[\/zmg\])/", '${1}'.$new.'/${3}', $item['body']);
|
||||||
$item['body'] = preg_replace("/".preg_quote($old,'/')."\/(search|\w+\/".$channel['channel_address'].")/", $new.'/${1}', $item['body']);
|
$item['body'] = preg_replace("/".preg_quote($old,'/')."\/(search|\w+\/".$channel['channel_address'].")/", $new.'/${1}', $item['body']);
|
||||||
|
|
||||||
$item['sig'] = base64url_encode(rsa_sign($item['body'],$channel['channel_prvkey']));
|
$item['sig'] = base64url_encode(rsa_sign($item['body'],$channel['channel_prvkey']));
|
||||||
|
Reference in New Issue
Block a user