Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix path to data directory

  • Loading branch information...
commit 17064d60f27376afd3cedd7c769be0b73da9bd9b 1 parent 889ae8c
@saltybeagle saltybeagle authored
View
2  package.xml
@@ -13,7 +13,7 @@ This package contains spatial data, latitude and longitude for buildings on the
<active>yes</active>
</lead>
<date>2011-04-20</date>
- <time>10:41:48</time>
+ <time>10:56:15</time>
<version>
<release>0.5.0</release>
<api>0.4.0</api>
View
2  package_compatible.xml
@@ -13,7 +13,7 @@ This package contains spatial data, latitude and longitude for buildings on the
<active>yes</active>
</lead>
<date>2011-04-20</date>
- <time>10:41:48</time>
+ <time>10:56:15</time>
<version>
<release>0.5.0</release>
<api>0.4.0</api>
View
4 src/UNL/Geography/SpatialData/SQLiteDriver.php
@@ -114,8 +114,8 @@ public function importCSV($table, $filename)
static public function getDataDir()
{
- if (file_exists(dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/data/UNL_Geography_SpatialData_Campus/pear.unl.edu')) {
- return dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/data/UNL_Geography_SpatialData_Campus/pear.unl.edu/';
+ if (file_exists(dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/data/pear.unl.edu/UNL_Geography_SpatialData_Campus')) {
+ return dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/data/pear.unl.edu/UNL_Geography_SpatialData_Campus/';
}
if (file_exists(dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/data/UNL_Geography_SpatialData_Campus')) {
return dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/data/UNL_Geography_SpatialData_Campus/data/';
Please sign in to comment.
Something went wrong with that request. Please try again.