<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -137,9 +137,9 @@ class PostsController extends AppController {
         $this-&gt;pageTitle = $this-&gt;data[$this-&gt;modelClass]['title'];
     }
     
-    function admin_update() {
-        //fb($this-&gt;data);
-        $this-&gt;data[$this-&gt;modelClass]['user_id'] = $this-&gt;getLoggedInUserId();
+    function admin_update($id) {
+        $this-&gt;data[$this-&gt;modelClass]['user_id'] = $this-&gt;Auth-&gt;user('id');
+        $this-&gt;data[$this-&gt;modelClass]['id'] = intval($id);
 
         // Publish?
         if (isset($this-&gt;data['__save']['publish'])) {</diff>
      <filename>wildflower/controllers/posts_controller.php</filename>
    </modified>
    <modified>
      <diff>@@ -61,7 +61,7 @@
     &lt;/div&gt;
 
     &lt;ul id=&quot;nav&quot;&gt;
-        &lt;li&gt;&lt;?php echo $htmla-&gt;link(__('Dashboard', true), '/' . Configure::read('Routing.admin'), array('strict' =&gt; true)); ?&gt;&lt;/li&gt;
+        &lt;li&gt;&lt;?php echo $htmla-&gt;link(__('Dashboard', true), '/' . Configure::read('Routing.admin')); ?&gt;&lt;/li&gt;
         &lt;li&gt;&lt;?php echo $htmla-&gt;link(__('Pages', true), array('controller' =&gt; 'pages', 'action' =&gt; 'index')); ?&gt;&lt;/li&gt;
         &lt;li&gt;&lt;?php echo $htmla-&gt;link(__('Modules', true), array('controller' =&gt; 'sidebars', 'action' =&gt; 'index')); ?&gt;&lt;/li&gt;
         &lt;li&gt;&lt;?php echo $htmla-&gt;link(__('Posts', true), array('controller' =&gt; 'posts', 'action' =&gt; 'index')); ?&gt;&lt;/li&gt;</diff>
      <filename>wildflower/views/layouts/admin_default.ctp</filename>
    </modified>
    <modified>
      <diff>@@ -43,8 +43,8 @@
         &lt;?php 
             echo $form-&gt;create('Post', array('action' =&gt; 'update'));
             echo $form-&gt;input('Category', array('multiple' =&gt; 'checkbox', 'options' =&gt; $categories, 'label' =&gt; false)); 
-            echo $form-&gt;input('id', array('type' =&gt; 'hidden')); 
             echo $form-&gt;submit('Assign', array('name' =&gt; 'data[_assign_category]'));
+            echo $form-&gt;end();
         ?&gt;   
 
 </diff>
      <filename>wildflower/views/posts/admin_edit.ctp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dea519bf4cc8d371586822ae2211d269f05315bd</id>
    </parent>
  </parents>
  <author>
    <name>klevo</name>
    <email>klevo@klevo.sk</email>
  </author>
  <url>http://github.com/klevo/wildflower/commit/2c184d5e2dcffcc852ad77acd3af2bedcd130b54</url>
  <id>2c184d5e2dcffcc852ad77acd3af2bedcd130b54</id>
  <committed-date>2009-10-21T08:28:34-07:00</committed-date>
  <authored-date>2009-10-21T08:28:34-07:00</authored-date>
  <message>cleaning HTML</message>
  <tree>1194d56ff7973d169dab541199d897bb1fa32e7a</tree>
  <committer>
    <name>klevo</name>
    <email>klevo@klevo.sk</email>
  </committer>
</commit>
