Skip to content

Commit

Permalink
removed some more occurances of DOKU_TPL*
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Feb 1, 2012
1 parent c4dda6a commit 81aca18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/exe/css.php
Expand Up @@ -41,8 +41,8 @@ function css_out(){
$tplinc = DOKU_INC.'lib/tpl/'.$tpl.'/';
$tpldir = DOKU_BASE.'lib/tpl/'.$tpl.'/';
}else{
$tplinc = DOKU_TPLINC;
$tpldir = DOKU_TPL;
$tplinc = tpl_incdir();
$tpldir = tpl_basedir();
}

// The generated script depends on some dynamic options
Expand Down
4 changes: 2 additions & 2 deletions lib/exe/js.php
Expand Up @@ -65,7 +65,7 @@ function js_out(){
# disabled for FS#1958 DOKU_INC.'lib/scripts/hotkeys.js',
DOKU_INC.'lib/scripts/behaviour.js',
DOKU_INC.'lib/scripts/page.js',
DOKU_TPLINC.'script.js',
tpl_incdir().'script.js',
);

// add possible plugin scripts and userscript
Expand All @@ -87,7 +87,7 @@ function js_out(){

// add some global variables
print "var DOKU_BASE = '".DOKU_BASE."';";
print "var DOKU_TPL = '".DOKU_TPL."';";
print "var DOKU_TPL = '".tpl_basedir()."';";
// FIXME: Move those to JSINFO
print "var DOKU_UHN = ".((int) useHeading('navigation')).";";
print "var DOKU_UHC = ".((int) useHeading('content')).";";
Expand Down
4 changes: 2 additions & 2 deletions lib/exe/opensearch.php
Expand Up @@ -16,9 +16,9 @@
// try to be clever about the favicon location
if(file_exists(DOKU_INC.'favicon.ico')){
$ico = DOKU_URL.'favicon.ico';
}elseif(file_exists(DOKU_TPLINC.'images/favicon.ico')){
}elseif(file_exists(tpl_incdir().'images/favicon.ico')){
$ico = DOKU_URL.'lib/tpl/'.$conf['template'].'/images/favicon.ico';
}elseif(file_exists(DOKU_TPLINC.'favicon.ico')){
}elseif(file_exists(tpl_incdir().'favicon.ico')){
$ico = DOKU_URL.'lib/tpl/'.$conf['template'].'/favicon.ico';
}else{
$ico = DOKU_URL.'lib/tpl/default/images/favicon.ico';
Expand Down

0 comments on commit 81aca18

Please sign in to comment.