Skip to content
This repository

Fix Issue #627 #1262

Merged
merged 1 commit into from about 2 years ago

2 participants

Hugo Vacher Phil Sturgeon
Hugo Vacher
Korri commented

Fix Issue #627, Configuration from the application folder comes before packages

Phil Sturgeon philsturgeon merged commit 8ebd1b7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 17, 2012
Korri Adding a package adds configuration folder to the end of the list. 3684d34
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 system/core/Loader.php
4 system/core/Loader.php
@@ -673,7 +673,7 @@ public function add_package_path($path, $view_cascade=TRUE)
673 673
674 674 // Add config file path
675 675 $config =& $this->_ci_get_component('config');
676   - array_unshift($config->_config_paths, $path);
  676 + array_push($config->_config_paths, $path);
677 677 }
678 678
679 679 // --------------------------------------------------------------------
@@ -713,7 +713,7 @@ public function remove_package_path($path = '', $remove_config_path = TRUE)
713 713 array_shift($this->_ci_model_paths);
714 714 array_shift($this->_ci_helper_paths);
715 715 array_shift($this->_ci_view_paths);
716   - array_shift($config->_config_paths);
  716 + array_pop($config->_config_paths);
717 717 }
718 718 else
719 719 {

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.