public
Description: A lightweight MVC framework on top of Grok-PHP
Homepage: http://chippino.googlecode.com
Clone URL: git://github.com/Jakobo/chippino.git
tweaked the protected access calls to be a bit looser

Signed-off-by: Jakob Heuser <jakob@felocity.org>
Jakobo (author)
Fri Jul 04 10:58:57 -0700 2008
commit  91724b769e55570f999b7b975a273570423993cb
tree    64c6c512204e3c0f5e7da9334a1fc45e9e962abc
parent  aaf5c2648fe3dacb54e31f41e35527996ffb5ffe
...
6
7
8
9
 
10
11
12
...
41
42
43
44
45
 
 
46
47
48
49
50
51
52
 
53
54
55
...
6
7
8
 
9
10
11
12
...
41
42
43
 
 
44
45
46
47
48
49
50
51
 
52
53
54
55
0
@@ -6,7 +6,7 @@
0
  */
0
 
0
 define('CHIPPINO_LOCATION', dirname(__FILE__) . DIRECTORY_SEPARATOR);
0
-define('CHIPPINO_LIBRARY_LOCATION', CHIPPINO_LOCATION . 'library' . DIRECTORY_SEPARATOR . 'chippino' . DIRECTORY_SEPARATOR);
0
+define('CHIPPINO_LIBRARY_LOCATION', CHIPPINO_LOCATION . 'library' . DIRECTORY_SEPARATOR);
0
 
0
 /**
0
  * Chippino initiator. used to create the chain
0
@@ -41,15 +41,15 @@ function chip($file = NULL) {
0
   $normalize = array(
0
     CHIPPINO_LIBRARY_LOCATION,
0
     strtolower(CHIPPINO_LIBRARY_LOCATION),
0
- chippino_config()->base_path . 'chippino' . DIRECTORY_SEPARATOR,
0
- strtolower(chippino_config()->base_path . 'chippino' . DIRECTORY_SEPARATOR),
0
+ chippino_config()->base_path,
0
+ strtolower(chippino_config()->base_path),
0
   );
0
   
0
   $caller = dirname(str_replace($normalize, '', $chip->getFilePath()));
0
   $callee = dirname(str_replace($normalize, '', $chip->getOrigin()));
0
 
0
   if ($caller != $callee) {
0
- throw new Chippino_Access_Exception($callee, $caller);
0
+ throw new Chippino_Access_Exception($chip->getFilePath(), $chip->getOrigin());
0
   }
0
   
0
   return $chip;

Comments

    No one has commented yet.