[pLog-svn] r4326 - plugins/branches/lifetype-1.1/plogpoll

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Nov 22 13:07:06 GMT 2006


Author: jondaley
Date: 2006-11-22 13:07:05 +0000 (Wed, 22 Nov 2006)
New Revision: 4326

Modified:
   plugins/branches/lifetype-1.1/plogpoll/pluginplogpoll.class.php
Log:
added missing include.http://bugs.lifetype.net/view.php?id=1128  Also, removed funny international chars or whatever they are.  I am not sure what that message should be?

Modified: plugins/branches/lifetype-1.1/plogpoll/pluginplogpoll.class.php
===================================================================
--- plugins/branches/lifetype-1.1/plogpoll/pluginplogpoll.class.php	2006-11-21 21:56:48 UTC (rev 4325)
+++ plugins/branches/lifetype-1.1/plogpoll/pluginplogpoll.class.php	2006-11-22 13:07:05 UTC (rev 4326)
@@ -74,6 +74,8 @@
       ip I8 NOTNULL KEY,
       date I(11) NOTNULL KEY";
 
+    // need include db.class.php first to run .
+    include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
     $db =& Db::getDb();
     $dbPrefix = Db::getPrefix();
 
@@ -112,8 +114,10 @@
   {
     $pmod = new PlogPollPolls();
     $poll = $pmod->getActivePoll($blogId);
-    if (!$poll)
-      return "<table id='pollbody'><tr><th>当前没有投票</th></tr></table>";
+    if (!$poll){
+      return "<table id='pollbody'>".
+          "<tr><th>No poll</th></tr></table>";
+    }
     
     $table = "";
     



More information about the pLog-svn mailing list