make_link with no args links to default page

git-svn-id: file:///home/shish/svn/shimmie2/trunk@373 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-07-26 13:19:39 +00:00
parent ccf45ef91f
commit 2e8e839f5c
16 changed files with 22 additions and 19 deletions

View File

@ -92,8 +92,11 @@ function tag_explode($tags) {
* HTML Generation *
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function make_link($page, $query=null) {
function make_link($page=null, $query=null) {
global $config;
if(is_null($page)) $page = $config->get_string('front_page', 'post/list');
$base = $config->get_string('base_href', './index.php?q=');
if(is_null($query)) {