Changeset 10010
- Timestamp:
- 06/30/08 07:33:55 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/autoload/sfSimpleAutoload.class.php
r9075 r10010 183 183 { 184 184 $finder = sfFinder::type('file')->follow_link()->name('*'.$ext); 185 foreach (glob($dir) as $dir)186 { 187 if (in_array($dir, $this->dirs))185 if($dirs = glob($dir)) 186 { 187 foreach ($dirs as $dir) 188 188 { 189 if ( $this->cacheLoaded)189 if (in_array($dir, $this->dirs)) 190 190 { 191 continue; 191 if ($this->cacheLoaded) 192 { 193 continue; 194 } 192 195 } 196 else 197 { 198 $this->dirs[] = $dir; 199 } 200 201 $this->cacheChanged = true; 202 $this->addFiles($finder->in($dir), false); 193 203 } 194 else195 {196 $this->dirs[] = $dir;197 }198 199 $this->cacheChanged = true;200 $this->addFiles($finder->in($dir), false);201 204 } 202 205 }

