Skip to content

Commit

Permalink
refs #1543 : modify - remove duplicate context
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jul 26, 2015
1 parent 90593db commit fa460d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/WikiCube/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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>',
Expand All @@ -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') .
Expand Down Expand Up @@ -122,9 +120,8 @@ function WikiCube_DataHandler($data) {

if (!array_key_exists('mode', $config)) {
return false;
} else {
return true;
}
return true;
}

?>

0 comments on commit fa460d9

Please sign in to comment.