SOURCES (DEVEL): mythweb-config.patch - removed incompatible chunks

glen glen at pld-linux.org
Sat Jan 7 14:44:23 CET 2006


Author: glen                         Date: Sat Jan  7 13:44:23 2006 GMT
Module: SOURCES                       Tag: DEVEL
---- Log message:
- removed incompatible chunks

---- Files affected:
SOURCES:
   mythweb-config.patch (1.3.2.3 -> 1.3.2.4) 

---- Diffs:

================================================================
Index: SOURCES/mythweb-config.patch
diff -u SOURCES/mythweb-config.patch:1.3.2.3 SOURCES/mythweb-config.patch:1.3.2.4
--- SOURCES/mythweb-config.patch:1.3.2.3	Sat Nov  5 15:15:35 2005
+++ SOURCES/mythweb-config.patch	Sat Jan  7 14:44:18 2006
@@ -1,15 +1,3 @@
-diff -ur ./mythweb/canned_searches.php /tmp/mythweb/canned_searches.php
---- ./mythweb/canned_searches.php	2005-03-01 09:10:23.000000000 +0200
-+++ /tmp/mythweb/canned_searches.php	2005-10-26 00:17:02.000000000 +0300
-@@ -13,7 +13,7 @@
-     require_once "includes/init.php";
- 
- // Load the canned searches
--    require_once "config/canned_searches.php";
-+    require_once "/etc/mythweb/canned_searches.php";
- 
- // Load the class for this page
-     require_once theme_dir.'canned_searches.php';
 diff -ur ./mythweb/includes/init.php /tmp/mythweb/includes/init.php
 --- ./mythweb/includes/init.php	2005-02-28 00:52:48.000000000 +0200
 +++ /tmp/mythweb/includes/init.php	2005-10-26 00:11:25.000000000 +0300
@@ -22,70 +10,6 @@
  
  // Clean up some variables
      if (!ereg('/$', $_SERVER['DOCUMENT_ROOT']))
-@@ -127,15 +127,15 @@
-     define('theme_dir', 'themes/'.Theme.'/');
- 
- // Load the theme config
--    require_once 'config/theme_'.Theme.'.php';
-+    require_once '/etc/mythweb/theme_'.Theme.'.php';
- 
- // Load the overall page theme class
-     require_once theme_dir."theme.php";
- 
- // Make sure the image cache path exists
-     $path = '';
--    foreach (split('/+', image_cache) as $dir) {
--        $path .= $path ? '/' . $dir : $dir;
-+    foreach (split("/+", image_cache) as $dir) {
-+        $path .= $path ? ('/' . $dir) : ($dir ? $dir : "/$dir");
-         if(!is_dir($path) && !mkdir($path, 0755))
-             trigger_error('Error creating path for '.$path.': Please check permissions.', FATAL);
-     }
-diff -ur ./mythweb/search.php /tmp/mythweb/search.php
---- ./mythweb/search.php	2005-03-01 09:10:23.000000000 +0200
-+++ /tmp/mythweb/search.php	2005-10-26 00:17:12.000000000 +0300
-@@ -64,7 +64,7 @@
-     if (preg_match('/^\s*canned:\s*(.+)\s*$/', $_SESSION['search']['searchstr'], $search_name)) {
-         $search_name = $search_name[1];
-     // Load the canned searches
--        require_once 'config/canned_searches.php';
-+        require_once '/etc/mythweb/canned_searches.php';
-     // Find the query
-         if ($Canned_Searches[$search_name]) {
-             $query = array($Canned_Searches[$search_name]);
-diff -ur ./mythweb/weather.php /tmp/mythweb/weather.php
---- ./mythweb/weather.php	2005-03-09 08:41:54.000000000 +0200
-+++ /tmp/mythweb/weather.php	2005-10-26 00:17:22.000000000 +0300
-@@ -253,7 +253,7 @@
- }
- 
- function getImageAndDescFromId($myid) {
--    $data = file("config/weathertypes.dat");
-+    $data = file("/etc/mythweb/weathertypes.dat");
-     foreach($data as $line) {
-     list($id, $name, $img) = explode(",", $line);
-     if($id != $myid) continue;
-@@ -263,7 +263,7 @@
- }
- 
- function getImageFromName($myname) {
--    $data = file("config/weathertypes.dat");
-+    $data = file("/etc/mythweb/weathertypes.dat");
-     foreach($data as $line) {
-     list($id, $name, $img) = explode(",", $line);
-     if($name != $myname) continue;
-diff -u ./mythweb/config/conf.php /tmp/conf/conf.php
---- ./mythweb/config/conf.php	2005-01-31 07:42:41.000000000 +0200
-+++ /tmp/conf/conf.php	2005-10-26 00:15:19.000000000 +0300
-@@ -41,7 +41,7 @@
-     define('fs_encoding', 'ISO-8859-1');
- 
- // Path to the image cache directory
--    define('image_cache', 'image_cache');
-+    define('image_cache', '/var/cache/mythweb/image_cache');
- 
- // Local (web-friendly) path to the mythtv video dir (use a symlink to the real one - one will be auto-created if it can be)
-     define('video_dir', 'video_dir');
 --- ./mythweb/config/conf.php~	2005-11-04 02:25:34.000000000 +0200
 +++ ./mythweb/config/conf.php	2005-11-04 02:26:32.000000000 +0200
 @@ -29,7 +29,7 @@
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/mythweb-config.patch?r1=1.3.2.3&r2=1.3.2.4&f=u



More information about the pld-cvs-commit mailing list