Changeset 19877


Ignore:
Timestamp:
Jan 6, 2013, 2:09:29 AM (8 years ago)
Author:
julien1311
Message:

[pdf2tab] load admin.css only on admin pages

Location:
extensions/pdf2tab
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/pdf2tab/install/config_default.inc.php

    r19811 r19877  
    11<?php
    22$config_default = array(
    3         'extensions' => array('pdf', 'docx',    'doc', 'odt', 'xlsx', 'xls', 'ods', 'pptx', 'ppt', 'odp'),
     3        'extensions' => array('pdf', 'docx', 'doc', 'odt', 'xlsx', 'xls', 'ods', 'pptx', 'ppt', 'odp'),
    44);
    55?>
  • extensions/pdf2tab/main.inc.php

    r19811 r19877  
    4444        global $template, $conf;
    4545
    46         //add a stylesheet
    47         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.PDF2TAB_PATH.'css/admin.css">');
     46        if (defined('IN_ADMIN') and IN_ADMIN)
     47                $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.PDF2TAB_PATH.'css/admin.css">');
    4848}
    4949?>
  • extensions/pdf2tab/maintain.inc.php

    r19811 r19877  
    33
    44function plugin_install() {
    5         include_once(dirname(__FILE__).'/install/functions.inc.php');
    6         include_once(dirname(__FILE__).'/install/config_default.inc.php');
     5        require_once(dirname(__FILE__).'/install/functions.inc.php');
     6        require(dirname(__FILE__).'/install/config_default.inc.php');
    77
    88        pdf2tab_install($config_default);
     
    1010
    1111function plugin_activate() {
    12         include_once(dirname(__FILE__).'/install/functions.inc.php');
     12        require_once(dirname(__FILE__).'/install/functions.inc.php');
    1313       
    1414        pdf2tab_update_db();
     
    1616
    1717function plugin_uninstall() {
    18         include_once(dirname(__FILE__).'/install/functions.inc.php');
     18        require_once(dirname(__FILE__).'/install/functions.inc.php');
    1919
    2020        pdf2tab_delete_conf("pdf2tab");
Note: See TracChangeset for help on using the changeset viewer.