Revision | 359 (tree) |
---|---|
Time | 2015-05-05 07:59:12 |
Author | kmorimatsu |
<%include%> etc: remain xxx.inc, but if not, convert to jxxx.inc
@@ -168,7 +168,7 @@ | ||
168 | 168 | showmedia::tag_popuptext(); |
169 | 169 | } |
170 | 170 | static public function tag_include(&$data,$skin){ |
171 | - if (!preg_match('/^j.*\.inc/',$skin)) $skin="j$skin.inc"; | |
171 | + if (!preg_match('/\.inc$/',$skin)) $skin="j$skin.inc"; | |
172 | 172 | view::tag_include($data,$skin,'html'); |
173 | 173 | } |
174 | 174 | static public function tag_item(&$data,$template){ |
@@ -278,7 +278,7 @@ | ||
278 | 278 | Examples |
279 | 279 | <%parsedinclude(filename.txt)%> |
280 | 280 | <%parsedinclude(/home/user/myself/filename.txt)%>*/ |
281 | - if (!preg_match('/^j.*\.inc/',$skin)) $skin="j$skin.inc"; | |
281 | + if (!preg_match('/\.inc$/',$skin)) $skin="j$skin.inc"; | |
282 | 282 | view::tag_parse($data,$skin); |
283 | 283 | } |
284 | 284 | static public function tag_phpinclude(&$data,$skin){ |
@@ -294,7 +294,7 @@ | ||
294 | 294 | Examples |
295 | 295 | <%phpinclude(filename.php)%> |
296 | 296 | <%phpinclude(/home/user/myself/filename.php)%>*/ |
297 | - if (!preg_match('/^j.*\.inc/',$skin)) $skin="j$skin.inc"; | |
297 | + if (!preg_match('/\.inc$/',$skin)) $skin="j$skin.inc"; | |
298 | 298 | view::tag_parse($data,$skin); |
299 | 299 | } |
300 | 300 | static public function tag_plugin(&$data){ |