Created
January 22, 2014 10:11
-
-
Save b0n/8556330 to your computer and use it in GitHub Desktop.
Movabletypeで検索系のcgi動作時に処理を回避する
This file contains hidden or 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
<mt:setvarblock name="relation_parts"><mt:blogsitepath><$MTEntryDate format="%Y/%m"$>/<mt:entrybasename extension="0" separator="-">_rel.html</mt:setvarblock> | |
<mt:var name="search" value="0"> | |
<mt:ifstraightsearch><mt:var name="search" value="1"></mt:ifstraightsearch> | |
<mt:iftagsearch><mt:var name="search" value="1"></mt:iftagsearch> | |
<mt:if name="search" eq="0"> | |
<?php | |
ini_set('display_errors', false); | |
$file = ''; | |
$file = "<mt:getvar name="relation_parts">"; | |
echo "<!--" . $file . "-->"; | |
if(file_exists($file)) { | |
include($file); | |
} | |
?> | |
</mt:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment