mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
1d72fea524
|
@ -193,8 +193,12 @@ class SeedDMS_Controller_Common {
|
||||||
$tmps = array();
|
$tmps = array();
|
||||||
$tmp = explode('_', get_class($this));
|
$tmp = explode('_', get_class($this));
|
||||||
$tmps[] = $tmp[2];
|
$tmps[] = $tmp[2];
|
||||||
$tmp = explode('_', get_parent_class($this));
|
foreach(class_parents($this) as $pc) {
|
||||||
|
$tmp = explode('_', $pc);
|
||||||
$tmps[] = $tmp[2];
|
$tmps[] = $tmp[2];
|
||||||
|
}
|
||||||
|
// $tmp = explode('_', get_parent_class($this));
|
||||||
|
// $tmps[] = $tmp[2];
|
||||||
/* Run array_unique() in case the parent class has the same suffix */
|
/* Run array_unique() in case the parent class has the same suffix */
|
||||||
$tmps = array_unique($tmps);
|
$tmps = array_unique($tmps);
|
||||||
foreach($tmps as $tmp)
|
foreach($tmps as $tmp)
|
||||||
|
|
|
@ -112,8 +112,10 @@ class SeedDMS_View_Common {
|
||||||
$tmps = array();
|
$tmps = array();
|
||||||
$tmp = explode('_', get_class($this));
|
$tmp = explode('_', get_class($this));
|
||||||
$tmps[] = $tmp[2];
|
$tmps[] = $tmp[2];
|
||||||
$tmp = explode('_', get_parent_class($this));
|
foreach(class_parents($this) as $pc) {
|
||||||
|
$tmp = explode('_', $pc);
|
||||||
$tmps[] = $tmp[2];
|
$tmps[] = $tmp[2];
|
||||||
|
}
|
||||||
/* Run array_unique() in case the parent class has the same suffix */
|
/* Run array_unique() in case the parent class has the same suffix */
|
||||||
$tmps = array_unique($tmps);
|
$tmps = array_unique($tmps);
|
||||||
$ret = null;
|
$ret = null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user