From b7c8d2cec4ff575abb7ae0d3d63a16117aa1db8e Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Tue, 8 Mar 2011 13:55:52 +0000 Subject: [PATCH] * change the extenion dir from ext to opt. --- framework/control.class.php | 2 +- framework/router.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/control.class.php b/framework/control.class.php index 6027db6499..7a787b6aa1 100755 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -288,7 +288,7 @@ class control */ public function getExtViewFile($viewFile) { - $extPath = dirname(dirname(realpath($viewFile))) . '/opt/view/'; + $extPath = dirname(dirname(realpath($viewFile))) . '/ext/view/'; $extViewFile = $extPath . basename($viewFile); if(file_exists($extViewFile)) { diff --git a/framework/router.class.php b/framework/router.class.php index 54069461e5..a49c2092e0 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -986,7 +986,7 @@ class router */ public function getModuleExtPath($moduleName, $ext) { - return $this->getModuleRoot() . strtolower(trim($moduleName)) . $this->pathFix . 'opt' . $this->pathFix . $ext . $this->pathFix; + return $this->getModuleRoot() . strtolower(trim($moduleName)) . $this->pathFix . 'ext' . $this->pathFix . $ext . $this->pathFix; } /**