[pLog-svn] r2168 - plugins/trunk/mobile/class/view

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sun Jun 5 12:29:55 GMT 2005


Author: oscar
Date: 2005-06-05 12:29:54 +0000 (Sun, 05 Jun 2005)
New Revision: 2168

Modified:
   plugins/trunk/mobile/class/view/mobiledefaultview.class.php
   plugins/trunk/mobile/class/view/mobileviewarticleview.class.php
Log:
now the full url is include in the pager links, otherwise series60 opera was having some issues and loading index.php instead of mobile.php.


Modified: plugins/trunk/mobile/class/view/mobiledefaultview.class.php
===================================================================
--- plugins/trunk/mobile/class/view/mobiledefaultview.class.php	2005-06-05 12:18:18 UTC (rev 2167)
+++ plugins/trunk/mobile/class/view/mobiledefaultview.class.php	2005-06-05 12:29:54 UTC (rev 2168)
@@ -44,7 +44,9 @@
             $this->setValue( "posts", $blogArticles );
             
             // create the pager and pass it to the template too
-            $pager = new Pager( "?op=Default&blogId=".$this->_blogInfo->getId()."&page=",
+            $murl = new MobileRequestGenerator( $this->_blogInfo );            
+            $pager = new Pager( $murl->getMobileUrl()."?op=Default&blogId=".
+                                $this->_blogInfo->getId()."&page=",
                                 $this->_page,
                                 $numPosts,
                                 MOBILE_PLOG_NUM_POSTS_PER_PAGE );

Modified: plugins/trunk/mobile/class/view/mobileviewarticleview.class.php
===================================================================
--- plugins/trunk/mobile/class/view/mobileviewarticleview.class.php	2005-06-05 12:18:18 UTC (rev 2167)
+++ plugins/trunk/mobile/class/view/mobileviewarticleview.class.php	2005-06-05 12:29:54 UTC (rev 2168)
@@ -31,7 +31,9 @@
                                                           COMMENT_STATUS_NONSPAM );
                                                           
             // and finally, generate the pager
-            $pager = new Pager( "?op=ViewArticle&blogId=".$this->_blogInfo->getId()."&articleId=".$article->getId()."&page=",
+            $murl = new MobileRequestGenerator( $this->_blogInfo );
+            $pager = new Pager( $murl->getMobileUrl()."?op=ViewArticle&blogId=".
+                                $this->_blogInfo->getId()."&articleId=".$article->getId()."&page=",
                                 $this->_page,
                                 $numComments,
                                 MOBILE_PLOG_NUM_COMMENTS_PER_PAGE );




More information about the pLog-svn mailing list