Commit 3f06a857 authored by DM42.Net (Matt Dent)'s avatar DM42.Net (Matt Dent)

ARTICLES MODULE: Default to local_channel() user when no argv(1) is passed.

parent f81a3ba4
......@@ -17,8 +17,14 @@ class Articles extends Controller {
if(argc() > 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment