Skip to content

Commit

Permalink
refs #1431
Browse files Browse the repository at this point in the history
  * 동적 로딩 관련하여 오류 수정
  • Loading branch information
inureyes committed Feb 6, 2010
1 parent f50482b commit 6008ed1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions interface/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
header("Location: $blogURL/i"); exit;
}
}

publishEntries();

if (!empty($_POST['mode']) && $_POST['mode'] == 'fb') { // Treat comment notifier.
Expand All @@ -70,7 +69,6 @@
notifyComment();
}


fireEvent('OBStart');

if(empty($suri['id'])) { // Without id.
Expand Down
7 changes: 5 additions & 2 deletions library/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$adminMenuMappings = array();
$adminHandlerMappings = array();
$configMappings = array();
$baseConfigPost = $service['path'].'/owner/setting/plugins/currentSetting';
$baseConfigPost = $context->getProperty('service.path').'/owner/setting/plugins/currentSetting';
$configPost = '';
$configVal = '';
$typeSchema = null;
Expand All @@ -25,7 +25,10 @@
if (getBlogId()) {
if($gCacheStorage->getContent('activePlugins')) $activePlugins = $gCacheStorage->getContent('activePlugins');
else {
$activePlugins = POD::queryColumn("SELECT name FROM {$database['prefix']}Plugins WHERE blogid = ".getBlogId());
$pool = DBModel::getInstance();
$pool->reset('Plugins');
$pool->setQualifier('blogid','eq',getBlogId());
$activePlugins = $pool->getColumn('name');
$gCacheStorage->setContent('activePlugins',$activePlugins);
}
$xmls = new XMLStruct();
Expand Down
3 changes: 1 addition & 2 deletions library/preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@

/// Loading configuration
$context = Model_Context::getInstance(); // automatic initialization via first instanciation
//$config = Model_Config::getInstance();
$config = Model_Config::getInstance();
$uri = Model_URIHandler::getInstance();

/// Loading debug module
if($context->getProperty('service.debugmode') == true) {
if(!is_null($context->getProperty('database.dbms'))) {
Expand Down
2 changes: 1 addition & 1 deletion library/view/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function getUpperView($paging) {
<script type="text/javascript">
//<![CDATA[
var servicePath = "<?php echo $context->getProperty('service.path');?>";
var blogURL = "<?php echo $config->getProperty('uri.blog');?>";
var blogURL = "<?php echo $context->getProperty('uri.blog');?>";
var prevURL = "<?php echo isset($paging['prev']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['prev']}{$paging['postfix']}") : '';?>";
var nextURL = "<?php echo isset($paging['next']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['next']}{$paging['postfix']}") : '';?>";
var commentKey = "<?php echo md5(filemtime(ROOT . '/config.php'));?>";
Expand Down

0 comments on commit 6008ed1

Please sign in to comment.