From 1af1c4ba5a305e976bc2ca87f7731c2554b35520 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 22 Jun 2013 16:10:56 +0300 Subject: [PATCH] cleanup --- ipf/admin/views.php | 3 ++- ipf/application.php | 2 +- ipf/enum.php | 38 -------------------------------------- 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 ipf/enum.php diff --git a/ipf/admin/views.php b/ipf/admin/views.php index e206c6e..15f1f50 100644 --- a/ipf/admin/views.php +++ b/ipf/admin/views.php @@ -1,6 +1,7 @@ name = str_replace('_App', '', get_class($this)); if (strpos($this->name,'IPF_')===0) - $this->path = IPF::get('ipf_path').DIRECTORY_SEPARATOR.'ipf'.DIRECTORY_SEPARATOR.strtolower(str_replace('_',DIRECTORY_SEPARATOR,str_replace('IPF_','',$this->name))); + $this->path = IPF::get('ipf_path').DIRECTORY_SEPARATOR.strtolower(str_replace('_',DIRECTORY_SEPARATOR,$this->name)); else $this->path = IPF::get('project_path').DIRECTORY_SEPARATOR.strtolower(str_replace('_',DIRECTORY_SEPARATOR,$this->name)); $this->path .= DIRECTORY_SEPARATOR; diff --git a/ipf/enum.php b/ipf/enum.php deleted file mode 100644 index 2c3f63b..0000000 --- a/ipf/enum.php +++ /dev/null @@ -1,38 +0,0 @@ -current_val = constant( "{$class_name}::{$type}" ); - } - - final public function __toString() { - return $this->current_val; - } -} -- 2.49.0