]> git.andy128k.dev Git - ipf.git/commitdiff
more clear app slug generation
authorAndrey Kutejko <andy128k@gmail.com>
Thu, 25 Dec 2014 22:39:04 +0000 (00:39 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Thu, 25 Dec 2014 22:39:04 +0000 (00:39 +0200)
ipf/application.php

index 1ff21deb19c8adc04ca938c32c192a90f803f77f..47264c617b6ed3ddf4653678b1514217ae32cdfa 100644 (file)
@@ -29,8 +29,7 @@ abstract class IPF_Application
 
     public function slug()
     {
-        $e = explode('_',$this->name);
-        return strtolower($e[count($e)-1]);
+        return strtolower(preg_replace('/^IPF_/', '', $this->name));
     }
 
     /**