Skip to content

Commit

Permalink
Updated CHANGELOG.md and code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Oct 13, 2015
1 parent b23bad0 commit 997f334
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

All Notable changes to `Spark Plug` will be documented in this file

## [0.1.2](https://github.com/rougin/transcribe/compare/v0.1.0...v0.1.2) - 2015-09-18
## [0.1.2](https://github.com/rougin/spark-plug/compare/v0.1.0...v0.1.2) - 2015-09-18

### Fixed
- Issues on defined constants

## [0.1.1](https://github.com/rougin/transcribe/compare/v0.1.0...v0.1.1) - 2015-09-15
## [0.1.1](https://github.com/rougin/spark-plug/compare/v0.1.0...v0.1.1) - 2015-09-15

### Added
- Namespaces
Expand Down
2 changes: 1 addition & 1 deletion bin/codeigniter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

$sparkPlug = new Rougin\CodeIgniter\SparkPlug\SparkPlug($GLOBALS, $_SERVER);
$sparkPlug = new Rougin\SparkPlug\SparkPlug($GLOBALS, $_SERVER);

return $sparkPlug->getCodeIgniter();
9 changes: 7 additions & 2 deletions src/SparkPlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,13 @@ protected function setPaths()
foreach ($iterator as $file) {
$core = 'core' . DIRECTORY_SEPARATOR . 'CodeIgniter.php';

if (strpos($file->getPathname(), $core) !== FALSE) {
define('BASEPATH', str_replace($core, '', $file->getPathname()));
if (strpos($file->getPathname(), $core) !== FALSE) {
if ( ! defined('BASEPATH')) {
define(
'BASEPATH',
str_replace($core, '', $file->getPathname())
);
}

break;
}
Expand Down

0 comments on commit 997f334

Please sign in to comment.