Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

method changed to findByPath

  • Loading branch information...
commit 5c36e99b6eb1fe9ec9e6feb0ee4d68e3475c6738 1 parent f549b41
@luku luku authored markstory committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 Controller/ApiPackagesController.php
View
8 Controller/ApiPackagesController.php
@@ -52,15 +52,15 @@ public function index() {
* @return void
**/
public function view() {
- $packagePath = null;
+ $path = null;
if (!empty($this->passedArgs)) {
- $packagePath = $this->ApiPackage->makePath($this->passedArgs);
+ $path = $this->ApiPackage->makePath($this->passedArgs);
}
- if (!$packagePath) {
+ if (!$path) {
$this->Session->setFlash(__d('api_generator', 'No package name was given'));
$this->redirect($this->referer());
}
- $apiPackage = $this->ApiPackage->findByPackagePath($packagePath);
+ $apiPackage = $this->ApiPackage->findByPath($path);
if (empty($apiPackage)) {
$this->_notFound(__d('api_generator', 'No package exists in the index with that name'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.