/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to adei.php

  • Committer: Suren A. Chilingaryan
  • Date: 2015-02-19 15:13:34 UTC
  • Revision ID: csa@dside.dyndns.org-20150219151334-ua3fab03vv2qhqd8
Allow full path in ADEI applications

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
function adei_app($name, $opts=false, $throw=false) {
29
29
    global $ADEI_APP_PATH;
30
30
    
31
 
    if (isset($ADEI_APP_PATH[$name])) $appname = $ADEI_APP_PATH[$name];
 
31
    if (substr($name, 0, 1) == "/") $appname = $name;
 
32
    else if (isset($ADEI_APP_PATH[$name])) $appname = $ADEI_APP_PATH[$name];
32
33
    else $appname = $ADEI_APP_PATH["default"] . $name;
33
34
 
34
35
    if (!file_exists($appname)) {