amazonchooser now uses API only
This commit is contained in:
parent
101515c102
commit
a93b103e32
2 changed files with 6 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
0.75:
|
||||||
|
-----
|
||||||
|
* Use native API method parseTemplate() (only)
|
||||||
|
|
||||||
0.74:
|
0.74:
|
||||||
-----
|
-----
|
||||||
* Adapted backend markup for 2.0 backend, needs more with real tests.
|
* Adapted backend markup for 2.0 backend, needs more with real tests.
|
||||||
|
|
|
@ -29,7 +29,7 @@ class serendipity_event_amazonchooser extends serendipity_event
|
||||||
$propbag->add('description', PLUGIN_EVENT_AMAZONCHOOSER_DESC);
|
$propbag->add('description', PLUGIN_EVENT_AMAZONCHOOSER_DESC);
|
||||||
$propbag->add('stackable', false);
|
$propbag->add('stackable', false);
|
||||||
$propbag->add('author', 'Matthew Groeninger, Ian');
|
$propbag->add('author', 'Matthew Groeninger, Ian');
|
||||||
$propbag->add('version', '0.74.1');
|
$propbag->add('version', '0.75');
|
||||||
$propbag->add('requirements', array(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '1.3',
|
'serendipity' => '1.3',
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
|
@ -429,10 +429,6 @@ class serendipity_event_amazonchooser extends serendipity_event
|
||||||
if (!is_object($serendipity['smarty'])) {
|
if (!is_object($serendipity['smarty'])) {
|
||||||
serendipity_smarty_init();
|
serendipity_smarty_init();
|
||||||
}
|
}
|
||||||
$tfile = serendipity_getTemplateFile('plugin_amazon_display.tpl', 'serendipityPath');
|
|
||||||
if (!$tfile || $tfile == 'plugin_amazon_display.tpl') {
|
|
||||||
$tfile = dirname(__FILE__) . '/plugin_amazon_display.tpl';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($asin)) {
|
if (isset($asin)) {
|
||||||
$method = "lookup";
|
$method = "lookup";
|
||||||
|
@ -453,7 +449,7 @@ class serendipity_event_amazonchooser extends serendipity_event
|
||||||
);
|
);
|
||||||
|
|
||||||
// use native API here - extends s9y version >= 1.3'
|
// use native API here - extends s9y version >= 1.3'
|
||||||
$content = $this->parseTemplate($tfile);
|
$content = $this->parseTemplate('plugin_amazon_display.tpl');
|
||||||
|
|
||||||
$content = str_replace("\n",'',$content);
|
$content = str_replace("\n",'',$content);
|
||||||
if (class_exists('Cache_Lite') && is_object($cache_obj)) {
|
if (class_exists('Cache_Lite') && is_object($cache_obj)) {
|
||||||
|
|
Loading…
Reference in a new issue