Skip to content

Commit

Permalink
Merge pull request Arcavias#45 from nsendetzky/master
Browse files Browse the repository at this point in the history
Improves compatibility with xampp environments
  • Loading branch information
nsendetzky committed Apr 4, 2014
2 parents 7e1c34b ebb464b commit b6cfdef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions admin/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 52,8 @@ public function getJsonRpcController()

/**
* Creates a array of all available translations
*
* @return array List of language IDs with labels
*
* @return array List of language IDs with labels
*/
public function getAvailableLanguages()
{
Expand Down Expand Up @@ -119,7 119,6 @@ public function getHtml( $absdir, $relpath )

$relpath = rtrim( $relpath, '/' );
$abslen = strlen( $absdir );
$ds = DIRECTORY_SEPARATOR;
$html = '';

foreach( $this->_arcavias->getCustomPaths( 'client/extjs' ) as $base => $paths )
Expand All @@ -128,8 127,8 @@ public function getHtml( $absdir, $relpath )

foreach( $paths as $path )
{
$jsbPath = $relpath . $relJsbPath . $ds . $path;
$jsbAbsPath = $base . $ds . $path;
$jsbPath = $relpath . $relJsbPath . '/' . $path;
$jsbAbsPath = $base . '/' . $path;

if( !is_file( $jsbAbsPath ) ) {
throw new Exception( sprintf( 'JSB2 file "%1$s" not found', $jsbAbsPath ) );
Expand Down
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 18,7 @@

$configPaths = array( $basedir. 'config', $appdir . 'config' );

$arcavias = new Arcavias( array( $basedir . 'ext' ), true, dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'arcavias' . DIRECTORY_SEPARATOR . 'arcavias-core' . DIRECTORY_SEPARATOR );
$arcavias = new Arcavias( array( $basedir . 'ext' ), true, dirname(__DIR__) . '/vendor/arcavias/arcavias-core/' );
$init = new Init( $arcavias, $configPaths );

$html = $init->getHtml( realpath($_SERVER['SCRIPT_FILENAME']), $_SERVER['SCRIPT_NAME'] );
Expand Down

0 comments on commit b6cfdef

Please sign in to comment.