Skip to content

Instantly share code, notes, and snippets.

@b0n
Created January 22, 2014 10:11
Show Gist options
  • Save b0n/8556330 to your computer and use it in GitHub Desktop.
Save b0n/8556330 to your computer and use it in GitHub Desktop.
Movabletypeで検索系のcgi動作時に処理を回避する
<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