Skip to content
This repository
Browse code

method changed to findByPath

  • Loading branch information...
commit 5c36e99b6eb1fe9ec9e6feb0ee4d68e3475c6738 1 parent f549b41
luku authored March 14, 2012 markstory committed March 28, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  Controller/ApiPackagesController.php
8  Controller/ApiPackagesController.php
@@ -52,15 +52,15 @@ public function index() {
52 52
  * @return void
53 53
  **/
54 54
 	public function view() {
55  
-		$packagePath = null;
  55
+		$path = null;
56 56
 		if (!empty($this->passedArgs)) {
57  
-			$packagePath = $this->ApiPackage->makePath($this->passedArgs);
  57
+			$path = $this->ApiPackage->makePath($this->passedArgs);
58 58
 		}
59  
-		if (!$packagePath) {
  59
+		if (!$path) {
60 60
 			$this->Session->setFlash(__d('api_generator', 'No package name was given'));
61 61
 			$this->redirect($this->referer());
62 62
 		}
63  
-		$apiPackage = $this->ApiPackage->findByPackagePath($packagePath);
  63
+		$apiPackage = $this->ApiPackage->findByPath($path);
64 64
 		if (empty($apiPackage)) {
65 65
 			$this->_notFound(__d('api_generator', 'No package exists in the index with that name'));
66 66
 		}

0 notes on commit 5c36e99

Please sign in to comment.
Something went wrong with that request. Please try again.