summaryrefslogtreecommitdiff
path: root/plugins/TemplatePlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TemplatePlugin.php')
-rw-r--r--plugins/TemplatePlugin.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/plugins/TemplatePlugin.php b/plugins/TemplatePlugin.php
index 80625c5b7..5595b3c01 100644
--- a/plugins/TemplatePlugin.php
+++ b/plugins/TemplatePlugin.php
@@ -19,7 +19,7 @@ if (!defined('STATUSNET')) {
exit(1);
}
-define('TEMPLATEPLUGIN_VERSION', '0.1');
+define('TEMPLATEPLUGIN_VERSION', '0.1.1');
class TemplatePlugin extends Plugin {
@@ -251,6 +251,17 @@ class TemplatePlugin extends Plugin {
$act->xw->setIndent(true);
}
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Template',
+ 'version' => TEMPLATEPLUGIN_VERSION,
+ 'author' => 'Brian Hendrickson',
+ 'homepage' => 'http://status.net/wiki/Plugin:Template',
+ 'rawdescription' =>
+ _m('Use an HTML template for Web output.'));
+ return true;
+ }
+
}
/**
@@ -322,16 +333,6 @@ class TemplateAction extends Action
}
}
- function onPluginVersion(&$versions)
- {
- $versions[] = array('name' => 'Template',
- 'version' => TEMPLATEPLUGIN_VERSION,
- 'author' => 'Brian Hendrickson',
- 'homepage' => 'http://status.net/wiki/Plugin:Template',
- 'rawdescription' =>
- _m('Use an HTML template for Web output.'));
- return true;
- }
}
@@ -348,10 +349,10 @@ class TemplateAction extends Action
* @link http://megapump.com/
*
*/
-
+if (!function_exists('section')) {
function section($tagname) {
global $tags;
if (isset($tags[$tagname]))
return $tags[$tagname];
}
-
+}