summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-24 19:58:10 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-24 19:58:10 (GMT)
commit85c7ce05c56566f4e731b80e86a153e00e11cd28 (patch)
treecb1e5234ca3704449a0d332ac7863fa3f1edd022 /abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch
parent41223be810f1e87f3e635afe541d5b445c6463cd (diff)
downloadlinhes_pkgbuild-85c7ce05c56566f4e731b80e86a153e00e11cd28.zip
linhes_pkgbuild-85c7ce05c56566f4e731b80e86a153e00e11cd28.tar.gz
linhes_pkgbuild-85c7ce05c56566f4e731b80e86a153e00e11cd28.tar.bz2
mythweb: fix PHP warnings and fix videos layout
Diffstat (limited to 'abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch')
-rw-r--r--abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch b/abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch
new file mode 100644
index 0000000..9fb3c04
--- /dev/null
+++ b/abs/core/mythtv/stable-29/mythweb/FixPHPWarnings_13260.patch
@@ -0,0 +1,21 @@
+--- ./modules/tv/recorded.php
++++ ./modules/tv/recorded.php
+@@ -179,14 +179,14 @@
+ if (function_exists('gmp_mul')) {
+ // GMP functions should work better with 64 bit numbers.
+ $size = gmp_mul('1024', $size);
+- define(disk_size, gmp_strval($size));
++ define('disk_size', gmp_strval($size));
+ $size = gmp_mul('1024', $used);
+- define(disk_used, gmp_strval($size));
++ define('disk_used', gmp_strval($size));
+ }
+ else {
+ // This is inaccurate, but it's the best we can get without GMP.
+- define(disk_size, ($size * 1024));
+- define(disk_used, ($used * 1024));
++ define('disk_size', ($size * 1024));
++ define('disk_used', ($used * 1024));
+ }
+
+ // Load the class for this page