OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba3b814
)
BugTrack/2176 showrss plugin: Use default template if error
author
umorigu
<umorigu@gmail.com>
Sat, 21 Oct 2017 05:33:36 +0000
(14:33 +0900)
committer
umorigu
<umorigu@gmail.com>
Sat, 21 Oct 2017 05:33:36 +0000
(14:33 +0900)
plugin/showrss.inc.php
patch
|
blob
|
history
diff --git
a/plugin/showrss.inc.php
b/plugin/showrss.inc.php
index
c32cd0a
..
a42157f
100644
(file)
--- a/
plugin/showrss.inc.php
+++ b/
plugin/showrss.inc.php
@@
-51,10
+51,10
@@
function plugin_showrss_convert()
}
$class = ($template == '' || $template == 'default') ? 'ShowRSS_html' : 'ShowRSS_html_' . $template;
}
$class = ($template == '' || $template == 'default') ? 'ShowRSS_html' : 'ShowRSS_html_' . $template;
+ if (! class_exists($class)) $class = 'ShowRSS_html';
+
if (! is_numeric($cachehour))
return '#showrss: Cache-lifetime seems not numeric: ' . htmlsc($cachehour) . '<br />' . "\n";
if (! is_numeric($cachehour))
return '#showrss: Cache-lifetime seems not numeric: ' . htmlsc($cachehour) . '<br />' . "\n";
- if (! class_exists($class))
- return '#showrss: Template not found: ' . htmlsc($template) . '<br />' . "\n";
if (! is_url($uri))
return '#showrss: Seems not URI: ' . htmlsc($uri) . '<br />' . "\n";
if (! is_url($uri))
return '#showrss: Seems not URI: ' . htmlsc($uri) . '<br />' . "\n";