[pLog-svn] r2184 - plugins/trunk/mobile
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Thu Jun 9 07:29:38 GMT 2005
Author: oscar
Date: 2005-06-09 07:29:37 +0000 (Thu, 09 Jun 2005)
New Revision: 2184
Modified:
plugins/trunk/mobile/pluginmobile.class.php
Log:
one little fix
Modified: plugins/trunk/mobile/pluginmobile.class.php
===================================================================
--- plugins/trunk/mobile/pluginmobile.class.php 2005-06-09 07:07:41 UTC (rev 2183)
+++ plugins/trunk/mobile/pluginmobile.class.php 2005-06-09 07:29:37 UTC (rev 2184)
@@ -19,16 +19,15 @@
}
/**
- * Returns a link to the mobile view of a blog
+ * Returns a link to the mobile view of the current blog
*
- * @param blog A valid BlogInfo object
* @return A valid URL
*/
- function blogLink( $blog )
+ function blogLink()
{
include_once( MOBILE_PLOG_CLASS_PATH."class/net/mobilerequestgenerator.class.php" );
- $murl = new MobileRequestGenerator( $blog );
- return( $murl->getMobileUrl()."?blogId=".$blog->getId());
+ $murl = new MobileRequestGenerator( $this->blogInfo );
+ return( $murl->getMobileUrl()."?blogId=".$this->blogInfo->getId());
}
/**
@@ -40,7 +39,7 @@
function articleLink( $article )
{
include_once( MOBILE_PLOG_CLASS_PATH."class/net/mobilerequestgenerator.class.php" );
- $murl = new MobileRequestGenerator( $blog );
+ $murl = new MobileRequestGenerator( $this->blogInfo );
return( $murl->getMobileUrl()."?op=ViewArticle&blogId=".$this->blogInfo->getId()."&articleId=".$article->getId());
}
}
More information about the pLog-svn
mailing list