-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #1543 : modify - remove duplicate context
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
---------------------------------- | ||
Version 0.15 | ||
Starts at : Apr. 5, 2006 | ||
Last modified at : June. 29, 2015 (WIP) | ||
Last modified at : July. 27, 2015 (WIP) | ||
Jeongkyu Shin. | ||
E-mail : [email protected] | ||
|
@@ -36,7 +36,6 @@ function WikiCube_FormatContent($target, $mother) { | |
$config['mode'] = 'entry'; | ||
} | ||
|
||
$context = Model_Context::getInstance(); | ||
$pattern = array( | ||
'/\[\[(.*?)\|(.*?)\]\]/' => '<a href="' . $context->getProperty('uri.blog') . '/' . $config['mode'] . '/$2' . '">$1</a>', | ||
'/\[\[tg:(.*?)\]\]/' => '<a href="' . $context->getProperty('uri.blog') . '/tag/$1' . '">$1</a>', | ||
|
@@ -56,7 +55,6 @@ function WikiCube_FormatErrorPage($target) { | |
$config['mode'] = 'entry'; | ||
} | ||
|
||
$context = Model_Context::getInstance(); | ||
$additional = '<div style="border:none;width:100%;text-align:center;"><a href="' . $context->getProperty('uri.blog') . | ||
'/owner/entry/post?slogan=' . $context->getProperty('suri.value') . | ||
($config['mode'] == 'entry' ? '' : '&category=-3') . | ||
|
@@ -122,9 +120,8 @@ function WikiCube_DataHandler($data) { | |
|
||
if (!array_key_exists('mode', $config)) { | ||
return false; | ||
} else { | ||
return true; | ||
} | ||
return true; | ||
} | ||
|
||
?> |