[pLog-svn] r4916 - in plugins/branches/lifetype-1.2: . categorybrowser unported
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Mar 2 10:39:03 EST 2007
Author: jondaley
Date: 2007-03-02 10:39:03 -0500 (Fri, 02 Mar 2007)
New Revision: 4916
Added:
plugins/branches/lifetype-1.2/categorybrowser/
Removed:
plugins/branches/lifetype-1.2/unported/categorybrowser/
Modified:
plugins/branches/lifetype-1.2/categorybrowser/plugincategorybrowser.class.php
Log:
ported category browser plugin to 1.2
Copied: plugins/branches/lifetype-1.2/categorybrowser (from rev 4915, plugins/branches/lifetype-1.2/unported/categorybrowser)
Modified: plugins/branches/lifetype-1.2/categorybrowser/plugincategorybrowser.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/categorybrowser/plugincategorybrowser.class.php 2007-03-02 15:18:42 UTC (rev 4915)
+++ plugins/branches/lifetype-1.2/categorybrowser/plugincategorybrowser.class.php 2007-03-02 15:39:03 UTC (rev 4916)
@@ -15,7 +15,11 @@
var $_articles;
var $_prefix;
- function PluginCategoryBrowser(){
+ function PluginCategoryBrowser($source = ""){
+ $this->PluginBase($source);
+
+ $this->id = "categorybrowser";
+ $this->version = "20070302";
$this->author = "Jon Daley";
$this->desc = "This plugin adds the ability to have next
and previous buttons that stay within the same category as the
@@ -32,11 +36,12 @@
category.<br/>
They will return false if it doesn't exist, or an Article
object if it does.<br/>";
-
- $this->PluginBase();
+
+ if($source == "admin")
+ return;
+
$this->db =& Db::getDb();
$this->_prefix = Db::getPrefix();
- $this->id = "categorybrowser";
$this->_articles = new Articles();
}
More information about the pLog-svn
mailing list