Updated tablesorter to 2.10
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* @license http://dev.leenooks.net/license.html
|
||||
*/
|
||||
abstract class lnApp_HTMLRender {
|
||||
protected static $_unique_vals = array();
|
||||
protected $_unique_vals = array();
|
||||
protected $_x = 0;
|
||||
|
||||
abstract protected function render();
|
||||
@@ -25,6 +25,16 @@ abstract class lnApp_HTMLRender {
|
||||
if (! $args)
|
||||
return static::$_data[$c][$name];
|
||||
|
||||
// Strip out unique values
|
||||
if (in_array($name,$this->_unique_vals))
|
||||
foreach ($args as $u)
|
||||
foreach (static::$_data as $d)
|
||||
if (isset($d[$name]) AND $d[$name] == $u) {
|
||||
unset(static::$_data[$c]);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
static::$_data[$c][$name] = array_pop($args);
|
||||
|
||||
return $this;
|
||||
@@ -44,13 +54,11 @@ abstract class lnApp_HTMLRender {
|
||||
if (empty(static::$_data[$this->_x]))
|
||||
$this->record();
|
||||
|
||||
return $this->render();
|
||||
try {
|
||||
return $this->render();
|
||||
}
|
||||
|
||||
// Display the exception message
|
||||
catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user