Version Description
-
Bug Fix: Resolves minor issue in
2.2.1
that resulted in a warning being logged while interacting with the new thumbnail management table in the Document Gallery settings.
Download this release
Release Info
Developer | dan.rossiter |
Plugin | Document Gallery |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- README.txt +5 -0
- admin/class-admin.php +1 -1
- inc/class-logger.php +10 -10
README.txt
CHANGED
@@ -392,6 +392,11 @@ To see a list of features planned for the future as well as to propose your own
|
|
392 |
ideas for future Document Gallery development, take a look at our
|
393 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
394 |
|
|
|
|
|
|
|
|
|
|
|
395 |
= 2.2.1 =
|
396 |
* **Bug Fix:** PHP installs older than 5.3 were crashing with version 2.2. This release
|
397 |
patches the issue.
|
392 |
ideas for future Document Gallery development, take a look at our
|
393 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
394 |
|
395 |
+
= 2.2.2 =
|
396 |
+
* **Bug Fix:** Resolves minor issue in `2.2.1` that resulted in a warning being
|
397 |
+
logged while interacting with the new thumbnail management table in the
|
398 |
+
Document Gallery settings.
|
399 |
+
|
400 |
= 2.2.1 =
|
401 |
* **Bug Fix:** PHP installs older than 5.3 were crashing with version 2.2. This release
|
402 |
patches the issue.
|
admin/class-admin.php
CHANGED
@@ -971,7 +971,7 @@ var URL_params = <?php echo '{'.trim($json_like,', ').'}'; ?>;
|
|
971 |
/**
|
972 |
* Wraps the PHP exit language construct.
|
973 |
*/
|
974 |
-
|
975 |
exit;
|
976 |
}
|
977 |
|
971 |
/**
|
972 |
* Wraps the PHP exit language construct.
|
973 |
*/
|
974 |
+
public static function _exit() {
|
975 |
exit;
|
976 |
}
|
977 |
|
inc/class-logger.php
CHANGED
@@ -73,20 +73,11 @@ class DG_Logger {
|
|
73 |
}
|
74 |
}
|
75 |
|
76 |
-
/**
|
77 |
-
* Wraps print_r passing true for the return argument.
|
78 |
-
* @param unknown $v
|
79 |
-
* @return mixed
|
80 |
-
*/
|
81 |
-
private static function print_r($v) {
|
82 |
-
return print_r($v, true);
|
83 |
-
}
|
84 |
-
|
85 |
/**
|
86 |
* Reads the current blog's log file, placing the values in to a 2-dimensional array.
|
87 |
* @param int $skip How many lines to skip before returning rows.
|
88 |
* @param int $limit Max number of lines to read.
|
89 |
-
* @return multitype:multitype:string|null The rows from the log file or null if
|
90 |
*/
|
91 |
public static function readLog($skip = 0, $limit = PHP_INT_MAX) {
|
92 |
$ret = null;
|
@@ -131,6 +122,15 @@ class DG_Logger {
|
|
131 |
private static function getLogFileName() {
|
132 |
return DG_PATH . 'log/' . get_current_blog_id() . '.log';
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
|
136 |
/**
|
73 |
}
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/**
|
77 |
* Reads the current blog's log file, placing the values in to a 2-dimensional array.
|
78 |
* @param int $skip How many lines to skip before returning rows.
|
79 |
* @param int $limit Max number of lines to read.
|
80 |
+
* @return multitype:multitype:string|null The rows from the log file or null if failed to open log.
|
81 |
*/
|
82 |
public static function readLog($skip = 0, $limit = PHP_INT_MAX) {
|
83 |
$ret = null;
|
122 |
private static function getLogFileName() {
|
123 |
return DG_PATH . 'log/' . get_current_blog_id() . '.log';
|
124 |
}
|
125 |
+
|
126 |
+
/**
|
127 |
+
* Wraps print_r passing true for the return argument.
|
128 |
+
* @param unknown $v Value to be printed.
|
129 |
+
* @return string Printed value.
|
130 |
+
*/
|
131 |
+
private static function print_r($v) {
|
132 |
+
return print_r($v, true);
|
133 |
+
}
|
134 |
}
|
135 |
|
136 |
/**
|