]> git.pld-linux.org Git - packages/bacula-web.git/blob - sys-libs.patch
- rel 2
[packages/bacula-web.git] / sys-libs.patch
1 --- bacula-web-5.2.11/core/global.inc.php       2013-01-24 19:43:27.543708741 +0200
2 +++ bacula-web-5.2.11/core/global.inc.php       2013-01-24 19:43:27.543708741 +0200
3 @@ -20,12 +20,11 @@
4  define('BW_LIBS', BW_ROOT . '/application/libs/');
5  define('BW_EXTERNAL', BW_OBJ . 'external');
6  
7 -define('BW_PHPLOT', BW_EXTERNAL . '/phplot/');
8 -define('BW_SMARTY', BW_EXTERNAL . '/smarty/libs/');
9 -define('BW_SMARTY_GETTEXT', BW_EXTERNAL . '/smarty-gettext/');
10 +define('BW_PHPLOT', '/usr/share/php/phplot/');
11 +define('BW_SMARTY', '/usr/share/php/Smarty/');
12  
13  // Configuration
14 -define('CONFIG_DIR', BW_ROOT . "/application/config/");
15 +define('CONFIG_DIR', '/etc/webapps/bacula-web/');
16  define('CONFIG_FILE', CONFIG_DIR . "config.php");
17  
18  // Main application
19 @@ -33,7 +32,6 @@
20  
21  // Template engine
22  require_once( BW_SMARTY . "Smarty.class.php");
23 -require_once( BW_SMARTY_GETTEXT . "smarty_gettext.php" );
24  
25  // Graph
26  require_once( BW_PHPLOT . "phplot.php");
27 @@ -77,7 +75,8 @@
28  
29  // Views
30  define('VIEW_DIR', BW_ROOT . "/application/view/");
31 -define('VIEW_CACHE_DIR', "application/view/cache");
32 +define('VIEW_CACHE_DIR', '/var/cache/bacula-web');
33 +define('VIEW_CACHE_URL', 'cache');
34  
35  // Locale
36  define('LOCALE_DIR', BW_ROOT . '/application/locale');
37 --- bacula-web-5.2.11/core/i18n/ctranslation.class.php~ 2012-08-11 13:14:04.000000000 +0300
38 +++ bacula-web-5.2.11/core/i18n/ctranslation.class.php  2013-01-24 19:38:38.147079534 +0200
39 @@ -32,9 +32,6 @@
40      }
41  
42      function set_Language(&$template) {
43 -        // Template engine block registration
44 -        $template->register_block('t', 'smarty_translate');
45 -
46          // Setting up language
47          putenv("LANGUAGE=" . $this->language . '.' . $this->charset);
48          putenv("LANG=" . $this->language . '.' . $this->charset);
49 --- bacula-web-5.2.11/core/graph/cgraph.class.php       2012-12-14 06:56:54.000000000 +0200
50 +++ bacula-web-5.2.11/core/graph/cgraph.class.php       2013-01-24 19:51:05.000000000 +0200
51 @@ -31,6 +31,7 @@
52  
53      function __construct($filename = "graph.png") {
54          $this->img_filename = VIEW_CACHE_DIR . '/' . $filename;
55 +        $this->img_fileurl = VIEW_CACHE_URL . '/' . $filename;
56      }
57  
58      public function SetData($data_in, $graph_type) {
59 @@ -51,7 +52,7 @@
60      }
61  
62      private function get_Filepath() {
63 -               return $this->img_filename;
64 +               return $this->img_fileurl;
65      }
66         
67      // ==================================================================================
This page took 0.075429 seconds and 3 git commands to generate.