public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
Fixed post editing. [#214 state:resolved]
Alex Suraci (author)
Sat Sep 27 10:33:09 -0700 2008
commit  cc4dcbddf153e5d9d3810c89253ab82a40814ad9
tree    7f3ddc4d541d3f81669b728c60bfd9cb388c7c61
parent  b38f473f71591d151ce30575adffe9f84080f4de
...
177
178
179
180
 
181
182
183
...
186
187
188
189
 
190
191
192
...
177
178
179
 
180
181
182
183
...
186
187
188
 
189
190
191
192
0
@@ -177,7 +177,7 @@
0
 
0
       $post = new Post($_GET['id'], array("drafts" => true, "filter" => false));
0
 
0
-      if (!$this->context["post"]->editable())
0
+      if (!$post->editable())
0
         show_403(__("Access Denied"), __("You do not have sufficient privileges to edit this post."));
0
 
0
       Trigger::current()->filter($options, array("edit_post_options", "post_options"), $post);
0
@@ -186,7 +186,7 @@
0
                      array("post" => $post,
0
                            "groups" => Group::find(array("order" => "id ASC")),
0
                            "options" => $options,
0
-                           "feather" => Feathers::$instances[$this->context["post"]->feather]));
0
+                           "feather" => Feathers::$instances[$post->feather]));
0
     }
0
 
0
     /**
...
263
264
265
266
267
268
269
 
 
270
271
272
...
263
264
265
 
 
 
 
266
267
268
269
270
0
@@ -263,10 +263,8 @@
0
       }
0
 
0
       if (!in_array(false, $set))
0
-        Flash::notice(__("Settings updated."), "/admin/?action=comment_settings");
0
-
0
-            $admin->display("comment_settings");
0
-    }
0
+                Flash::notice(__("Settings updated."), "/admin/?action=comment_settings");
0
+        }
0
 
0
     static function settings_nav($navs) {
0
       if (Visitor::current()->group()->can("change_settings"))

Comments