Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:vito/chyrp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Suraci committed Jul 24, 2008
2 parents c23cca9 + 1d3be1f commit f768167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/xmlrpc.php
Expand Up @@ -443,7 +443,7 @@ private function getRecentPosts($limit) {
global $user;

if (!in_array(XML_RPC_FEATHER, Config::current()->enabled_feathers))
throw new Exception(__(sprintf("The %s feather is not enabled.", XML_RPC_FEATHER)));
throw new Exception(_f("The %s feather is not enabled.", array(XML_RPC_FEATHER)));

$where = array('feather = :feather');
$params = array(':feather' => XML_RPC_FEATHER);
Expand Down Expand Up @@ -500,7 +500,7 @@ private function auth($login, $password, $do = 'add') {
if ($user->no_results)
throw new Exception(__("Login incorrect."));
else if (!$user->group()->can("{$do}_own_post", "{$do}_post", "{$do}_draft", "{$do}_own_draft"))
throw new Exception(__(sprintf("You don't have permission to %s posts/drafts.", $do)));
throw new Exception(_f("You don't have permission to %s posts/drafts.", array($do)));
}

#
Expand Down

0 comments on commit f768167

Please sign in to comment.