[pLog-svn] r1915 - plog/branches/plog-1.0.1/class/view/admin

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri Apr 29 09:29:04 GMT 2005


Author: oscar
Date: 2005-04-29 09:29:04 +0000 (Fri, 29 Apr 2005)
New Revision: 1915

Modified:
   plog/branches/plog-1.0.1/class/view/admin/admineditpostview.class.php
Log:
fixed issue 451 (http://bugs.plogworld.net/view.php?id=451), thanks tsung!


Modified: plog/branches/plog-1.0.1/class/view/admin/admineditpostview.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/view/admin/admineditpostview.class.php	2005-04-29 07:03:37 UTC (rev 1914)
+++ plog/branches/plog-1.0.1/class/view/admin/admineditpostview.class.php	2005-04-29 09:29:04 UTC (rev 1915)
@@ -3,9 +3,9 @@
 	include_once( PLOG_CLASS_PATH."class/view/admin/adminnewpostview.class.php" );
 	include_once( PLOG_CLASS_PATH."class/dao/articlenotifications.class.php" );
 	
-    /**
-     * \ingroup View
-     * @private
+    /**
+     * \ingroup View
+     * @private
      *	
 	 * shows the view that will allow to edit an article
 	 */
@@ -50,8 +50,8 @@
 	            
 	            // set information about the post itself into the view
 	            $this->setValue( "postTopic", $this->_article->getTopic());
-	            $this->setValue( "postText", $this->_article->getIntroText());
-	            $this->setValue( "postExtendedText", $this->_article->getExtendedText());
+	            $this->setValue( "postText", preg_replace('/&/', '&', $this->_article->getIntroText()));
+	            $this->setValue( "postExtendedText", preg_replace('/&/','&',$this->_article->getExtendedText()));
 	            $this->setValue( "postSlug", $this->_article->getPostSlug());
 	            $this->setValue( "postId", $this->_article->getId());
 	            if( $this->_article->getCommentsEnabled())




More information about the pLog-svn mailing list