includes/clientside/jsres.php
changeset 865 7f8262b2004a
parent 801 eb8b23f11744
child 1046 cfc6c30c5e2d
equal deleted inserted replaced
864:09c3ba4f6fbf 865:7f8262b2004a
    52 //
    52 //
    53 // Determine the location of Enano as an absolute path.
    53 // Determine the location of Enano as an absolute path.
    54 //
    54 //
    55 
    55 
    56 // We need to see if this is a specially marked Enano development server. You can create an Enano
    56 // We need to see if this is a specially marked Enano development server. You can create an Enano
    57 // development server by cloning the Mercurial repository into a directory named repo, and then
    57 // development server using the script found on hg.enanocms.org.
    58 // using symlinks to reference the original files so as to segregate unique files from non-unique
       
    59 // and distribution-standard ones. Enano will pivot its root directory accordingly if the file
       
    60 // .enanodev is found in the Enano root (not /repo/).
       
    61 if ( strpos(__FILE__, '/repo/') && ( file_exists('../../.enanodev') || file_exists('../../../.enanodev') ) )
    58 if ( strpos(__FILE__, '/repo/') && ( file_exists('../../.enanodev') || file_exists('../../../.enanodev') ) )
    62 {
    59 {
    63   // We have a development directory. Remove /repo/ from the picture.
    60   // We have a development directory. Remove /repo/ from the picture.
    64   $filename = str_replace('/repo/', '/', __FILE__);
    61   $filename = str_replace('/repo/', '/', __FILE__);
    65 }
    62 }