Skip to content

Commit

Permalink
refs #1067 : modify - config validator to prefetched 2.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jul 3, 2015
1 parent 3a95f23 commit 3772d45
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
5 changes: 3 additions & 2 deletions plugins/FM_Modern/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
function FM_Modern_handleconfig($configVal) {
$config = Setting::fetchConfigVal($configVal);
function FM_Modern_handleconfig($config) {
$context = Model_Context::getInstance();
$config = $context->getProperty('plugin.config');
if (isset($config['defaultmode']) && $config['defaultmode'] != 'WYSIWYG' && $config['defaultmode'] != 'TEXTAREA') return false;
if (isset($config['paragraphdelim']) && $config['paragraphdelim'] != 'P' && $config['paragraphdelim'] != 'BR') return false;
return true;
Expand Down
7 changes: 4 additions & 3 deletions plugins/TattertoolsBirthday/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
function TextcubeBirthday_TextcubeBirthday($target) {
global $configVal;
$data = Setting::fetchConfigVal( $configVal);
$context = Model_Context::getInstance();
$data = $context->getProperty('plugin.config');
$month = 3;
$day = 13;
if( !is_null( $data ) ){
Expand All @@ -27,7 +27,8 @@ function TextcubeBirthday_TextcubeBirthday($target) {
return $target;
}
function TextcubeBirthdayDataSet($DATA){
$cfg = Setting::fetchConfigVal( $DATA );
$context = Model_Context::getInstance();
$cfg = $context->getProperty('plugin.config');
// if( $cfg['month'] != 날짜냐?) return "잘못된 날짜입니다.";
// 등등등등 여기서 원하는 검증을 하시고 검증 실패시 사용자에게 보여줄 에러메세지를 보내주심 됩니다.
// 성공하면 그냥 true
Expand Down
2 changes: 1 addition & 1 deletion plugins/TattertoolsBirthday/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title xml:lang="ja">タッターツールズの誕生日表示</title>
<title xml:lang="zh-CN">表示TT生日</title>
<link>http://needlworks.org/</link>
<version>1.6</version>
<version>2.0</version>
<description xml:lang="en">This plugin displays Textcube birthday and D-day. To enable this, skin's HTML should contain [##_TextcubeBirthday_##] tag.</description>
<description xml:lang="ko"><![CDATA[텍스트큐브의 생일과 D-day를 블로그 페이지에 출력합니다. [##_TextcubeBirthday_##] 태그가 스킨에 있어야 합니다.]]></description>
<description xml:lang="ja">タッターツールズの誕生日と D-day をブログのページに出力します。このプラグインを使用中にして [##_TextcubeBirthday_##] タグをスキンに含むと動作が出来ます。</description>
Expand Down
12 changes: 5 additions & 7 deletions plugins/refererkeyword/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* Referer keywords for Textcube
----------------------------------
Version 1.10.3
Version 2.0
Tatter and Friends.
Creator : Chiri (http://moonmelody.com)
Expand All @@ -10,7 +10,7 @@
Created at : 2006.9.13
Last modified at : 2008.3.19 by gendoh (http://gendoh.com)
2008.3.21 by Chiri (http://moonmelody.com)
2015.2.16 by inureyes (http://forest.nubimaru.com)
2015.7.3 by inureyes (http://forest.nubimaru.com)
This plugin shows referer keyword statistics for a week on administration menu.
For the detail, visit http://forum.tattersite.com/ko
Expand Down Expand Up @@ -135,11 +135,9 @@ function bringSearchWord($originalURL, $originalHost) {


function refererkeyword() {
global $pluginMenuURL, $pluginSelfParam, $configVal;


$data = Setting::fetchConfigVal($configVal);

$context = Model_Context::getInstance();
$data = $context->getProperty('plugin.config');

$showURL = 0;
$limitRank = 5;
Expand Down Expand Up @@ -232,7 +230,7 @@ class="main-text"><?php echo _t('리퍼러 검색어 통계') . " (" . Timestamp
}
?>
</div>
<form id="refererkeyword-option" class="part" method="post" action="<?php echo $pluginMenuURL;?>">
<form id="refererkeyword-option" class="part" method="post" action="<?php echo $context->getProperty('plugin.uri.menu');?>">
<div class="title">
<span class="label"><?php echo _t('검색어 순위 출력은');?></span>
<span class="label"><select name="showKeywordlistLight"
Expand Down

0 comments on commit 3772d45

Please sign in to comment.