Permalink
Browse files

Correct rest path in categories.xml

  • Loading branch information...
1 parent df5d71a commit cf909fbd6a7b7cc99671453d4a423c365153381a @saltybeagle saltybeagle committed Nov 8, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/SimpleChannelServer/CLI.php
@@ -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";
@@ -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";
@@ -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";

0 comments on commit cf909fb

Please sign in to comment.