[pLog-svn] r4891 - in plugins/branches/lifetype-1.2: . ayearago unported
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Wed Feb 28 20:06:06 EST 2007
Author: pwestbro
Date: 2007-02-28 20:06:06 -0500 (Wed, 28 Feb 2007)
New Revision: 4891
Added:
plugins/branches/lifetype-1.2/ayearago/
Removed:
plugins/branches/lifetype-1.2/unported/ayearago/
Modified:
plugins/branches/lifetype-1.2/ayearago/pluginayearago.class.php
Log:
Ported the ayearago plugin
Copied: plugins/branches/lifetype-1.2/ayearago (from rev 4887, plugins/branches/lifetype-1.2/unported/ayearago)
Modified: plugins/branches/lifetype-1.2/ayearago/pluginayearago.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/ayearago/pluginayearago.class.php 2007-02-27 13:01:33 UTC (rev 4887)
+++ plugins/branches/lifetype-1.2/ayearago/pluginayearago.class.php 2007-03-01 01:06:06 UTC (rev 4891)
@@ -10,20 +10,21 @@
var $pluginEnabled;
var $maxPosts;
- function PluginAYearAgo()
+ function PluginAYearAgo($source = "" )
{
- $this->PluginBase();
+ $this->PluginBase($source);
$this->id = "ayearago";
$this->author = "Mariano Draghi (cHagHi)";
$this->desc = "This plugin offers various methods to get a list of posts written a year before a given post, or based on the current date.";
- $this->version = '1.0';
+ $this->version = '20070228';
$this->locales = Array( "en_UK", "es_ES" );
- $this->init();
+ if( $source == "admin" )
+ $this->initAdmin();
}
- function init()
+ function initAdmin()
{
$this->registerAdminAction( "ayearago", "PluginAYearAgoConfigAction" );
$this->registerAdminAction( "updateAYearAgoConfig", "PluginAYearAgoUpdateConfigAction" );
More information about the pLog-svn
mailing list