|
Revision 2339, 0.7 kB
(checked in by auno, 19 months ago)
|
|
Fixed to make properly sign in link for dynamic. BugzID:79768
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. |
|---|
| 3 | # This program is distributed under the terms of the |
|---|
| 4 | # GNU General Public License, version 2. |
|---|
| 5 | # |
|---|
| 6 | # $Id$ |
|---|
| 7 | |
|---|
| 8 | function smarty_function_mtsigninlink($args, &$ctx) { |
|---|
| 9 | $blog = $ctx->stash('blog'); |
|---|
| 10 | $entry = $ctx->stash('entry'); |
|---|
| 11 | $static_arg = $args['static'] ? "&static=1" : "&static=0"; |
|---|
| 12 | |
|---|
| 13 | require_once "function.mtcgipath.php"; |
|---|
| 14 | $path = smarty_function_mtcgipath($args, $ctx); |
|---|
| 15 | $return = $path . $ctx->mt->config('CommentScript') . |
|---|
| 16 | '?__mode=login' . $static_arg; |
|---|
| 17 | if ($blog) |
|---|
| 18 | $return .= '&blog_id=' . $blog['blog_id']; |
|---|
| 19 | if ($entry) |
|---|
| 20 | $return .= '&entry_id=' . $entry['entry_id']; |
|---|
| 21 | return $return; |
|---|
| 22 | } |
|---|