]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/GeomController.php
exported path: use title instead of idx for filename
[syj.git] / application / controllers / GeomController.php
index 497b2a8ca4692561644c743d68e8f0454e619c04..b01837c8c50c218e20cb452c59ffc6ff3bebe4dc 100644 (file)
@@ -28,12 +28,14 @@ class GeomController extends Zend_Controller_Action
         }
 
         if (!$pathMapper->find($idx, $path)) {
-            if ($pathMapper->hasexisted($idx)) {
-                $api->setCode(410);
-            } else {
-                $api->setCode(404);
+            if (!$pathMapper->findByTitle($idx, $path)) {
+                if ($pathMapper->hasexisted($idx)) {
+                    $api->setCode(410);
+                } else {
+                    $api->setCode(404);
+                }
+                return;
             }
-            return;
         }
 
         switch ($ext) {