ARTICLES MODULE: Default to local_channel() user when no argv(1) is passed.
This commit is contained in:
parent
f81a3ba45d
commit
3f06a857c2
@ -17,8 +17,14 @@ class Articles extends Controller {
|
|||||||
|
|
||||||
if(argc() > 1)
|
if(argc() > 1)
|
||||||
$which = argv(1);
|
$which = argv(1);
|
||||||
else
|
|
||||||
return;
|
if(! $which) {
|
||||||
|
if(local_channel()) {
|
||||||
|
$channel = App::get_channel();
|
||||||
|
if($channel && $channel['channel_address'])
|
||||||
|
$which = $channel['channel_address'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
profile_load($which);
|
profile_load($which);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user