[pLog-svn] r6865 - plugins/branches/lifetype-1.2/moblog/install

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Apr 16 12:20:44 EDT 2009


Author: jondaley
Date: 2009-04-16 12:20:44 -0400 (Thu, 16 Apr 2009)
New Revision: 6865

Modified:
   plugins/branches/lifetype-1.2/moblog/install/moblog.php
Log:
working on an installation for bornheim.net.  I'll be adding some configuration flags to enable these commented sections

Modified: plugins/branches/lifetype-1.2/moblog/install/moblog.php
===================================================================
--- plugins/branches/lifetype-1.2/moblog/install/moblog.php	2009-04-15 19:14:31 UTC (rev 6864)
+++ plugins/branches/lifetype-1.2/moblog/install/moblog.php	2009-04-16 16:20:44 UTC (rev 6865)
@@ -48,6 +48,9 @@
     if( get_magic_quotes_gpc()) {
         $message = stripslashes( $message );
     }
+
+    // some phones need this
+//    $message = mb_convert_encoding($message, 'HTML-ENTITIES', "UTF-8");
     
     MoblogLogger::log("-- message --");
     MoblogLogger::log($message);
@@ -271,7 +274,13 @@
     
     // add the article
     $articles = new Articles();
-    $article = new Article( $request->getTopic(),
+    $postTopic = $request->getTopic();
+
+// some phones need this.
+//    $postTopic = utf8_decode($postTopic);
+//    $postBody = utf8_decode($postBody);
+
+    $article = new Article( $postTopic, 
                             $postBody,
                             Array( $category->getId()),
                             $userInfo->getId(),



More information about the pLog-svn mailing list