Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct rest path in categories.xml

  • Loading branch information...
commit cf909fbd6a7b7cc99671453d4a423c365153381a 1 parent df5d71a
@saltybeagle saltybeagle authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/SimpleChannelServer/CLI.php
View
6 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";
Please sign in to comment.
Something went wrong with that request. Please try again.