New 'libraries' folder in root instalation directory
This commit is contained in:
parent
05b6a91b0c
commit
006992b900
2267 changed files with 50 additions and 65 deletions
|
@ -199,7 +199,7 @@ function theme_storminvoice_view($node, $teaser = FALSE, $page = FALSE) {
|
|||
);
|
||||
|
||||
// Display link to tcpdf library only if library is installed.
|
||||
$tcpdf_dir = variable_get('storminvoice_tcpdf_location', 'sites/all/libraries/tcpdf');
|
||||
$tcpdf_dir = variable_get('storminvoice_tcpdf_location', 'libraries/tcpdf');
|
||||
if (file_exists($tcpdf_dir .'/tcpdf.php')) {
|
||||
$node->content['links']['print']['pdf'] = array(
|
||||
'#prefix' => '<dt class="stormcomponent print_pdf">',
|
||||
|
@ -480,7 +480,7 @@ function theme_storminvoice_report($node, $report, $language) {
|
|||
}
|
||||
|
||||
function theme_storminvoice_report_pdf($node, $language, $output = 'screen') {
|
||||
$tcpdf_dir = variable_get('storminvoice_tcpdf_location', 'sites/all/libraries/tcpdf');
|
||||
$tcpdf_dir = variable_get('storminvoice_tcpdf_location', 'libraries/tcpdf');
|
||||
|
||||
// Performs simple check for existance of tcpdf library . If it doesn't exist, revert to node display with message about tcpdf library.
|
||||
if (!file_exists($tcpdf_dir .'/tcpdf.php')) {
|
||||
|
|
Reference in a new issue