Skip to content

Commit

Permalink
Correct rest path in categories.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
saltybeagle committed Nov 8, 2009
1 parent df5d71a commit cf909fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimpleChannelServer/CLI.php
Expand Up @@ -72,7 +72,7 @@ function handleCategorize()
$args['category'] = $_SERVER['argv'][3];
$categories = new Categories($this->channel);
$categories->linkPackageToCategory($args['package'], $args['category']);
$category = new REST\Category($this->dir . '/rest', $this->channel->name, null, $categories);
$category = new REST\Category($this->dir . '/rest', $this->channel->name, 'rest/', $categories);
$category->saveAllCategories();
$category->savePackagesInfo($args['category']);
echo "Added {$args['package']} to {$args['category']} \n";
Expand Down Expand Up @@ -101,7 +101,7 @@ function handleAddCategory()

$categories = new Categories($this->channel);
$categories->create($args['category'], $args['description']);
$category = new REST\Category($this->dir . '/rest', $this->channel->name, null, $categories);
$category = new REST\Category($this->dir . '/rest', $this->channel->name, 'rest/', $categories);
$category->saveAllCategories();
$category->savePackagesInfo($args['category']);
echo "Added category ", $args['category'], "\n";
Expand All @@ -116,7 +116,7 @@ function pyrusAddCategory($frontend, $args)

$categories = new Categories($this->channel);
$categories->create($args['category'], $args['description']);
$category = new REST\Category($this->dir . '/rest', $this->channel->name, null, $categories);
$category = new REST\Category($this->dir . '/rest', $this->channel->name, 'rest/', $categories);
$category->saveAllCategories();
$category->savePackagesInfo($args['category']);
echo "Added category ", $args['category'], "\n";
Expand Down

0 comments on commit cf909fb

Please sign in to comment.