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 !
Minor updates to XML-RPC support.
brucep (author)
Wed Jul 23 18:00:52 -0700 2008
commit  b622fd22bd86af6754f9f4dd4c15c3dd1f875b71
tree    c45df74f2b91d6b4bd06c282a3427c35376d18b8
parent  c252c563f30d461d23c3172e68cab4db2de1921e
...
61
62
63
64
 
 
65
66
67
68
69
70
 
71
72
73
...
61
62
63
 
64
65
66
67
68
69
70
 
71
72
73
74
0
@@ -61,13 +61,14 @@
0
       elseif (!isset($options["where"]))
0
         $options["where"] = array();
0
 
0
-      $options["where"] = array_merge($options["where"], array(self::$enabled_feathers, self::$private));
0
+      if (!XML_RPC)
0
+        $options["where"] = array_merge($options["where"], array(self::$enabled_feathers, self::$private));
0
 
0
       fallback($options["order"], "pinned desc, created_at desc, id desc");
0
 
0
       $posts = parent::search(get_class(), $options, $options_for_object);
0
 
0
-      if (!ADMIN)
0
+      if (!ADMIN and !XML_RPC)
0
         if (!isset($options["placeholders"]) or !$options["placeholders"]) {
0
           foreach ($posts as $index => $post)
0
             if (!$post->theme_exists())
...
443
444
445
446
 
447
448
 
449
450
451
...
443
444
445
 
446
447
 
448
449
450
451
0
@@ -443,9 +443,9 @@
0
       global $user;
0
 
0
       if (!in_array(XML_RPC_FEATHER, Config::current()->enabled_feathers))
0
-        throw new Exception(__(sprintf("%s feather is not enabled.", XML_RPC_FEATHER)));
0
+        throw new Exception(__(sprintf("The %s feather is not enabled.", XML_RPC_FEATHER)));
0
 
0
-      $where = array('posts.feather = :feather');
0
+      $where = array('feather = :feather');
0
       $params = array(':feather' => XML_RPC_FEATHER);
0
 
0
       if ($user->group()->can('view_own_draft', 'view_draft'))

Comments