mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
make factory(), getStyles() and exitError() static
This commit is contained in:
parent
7f2d7e3ebe
commit
cfc301290e
|
@ -44,7 +44,7 @@ class UI extends UI_Default {
|
|||
* @param array $params parameter passed to constructor of view class
|
||||
* @return object an object of a class implementing the view
|
||||
*/
|
||||
function factory($theme, $class, $params=array()) { /* {{{ */
|
||||
static function factory($theme, $class, $params=array()) { /* {{{ */
|
||||
global $settings, $session;
|
||||
if(file_exists("../views/".$theme."/class.".$class.".php")) {
|
||||
require("../views/".$theme."/class.".$class.".php");
|
||||
|
@ -73,7 +73,7 @@ class UI extends UI_Default {
|
|||
return null;
|
||||
} /* }}} */
|
||||
|
||||
function getStyles() { /* {{{ */
|
||||
static function getStyles() { /* {{{ */
|
||||
global $settings;
|
||||
|
||||
$themes = array();
|
||||
|
@ -90,7 +90,7 @@ class UI extends UI_Default {
|
|||
return $themes;
|
||||
} /* }}} */
|
||||
|
||||
function exitError($pagetitle, $error) {
|
||||
static function exitError($pagetitle, $error) {
|
||||
global $theme;
|
||||
$tmp = 'ErrorDlg';
|
||||
$view = UI::factory($theme, $tmp);
|
||||
|
|
Loading…
Reference in New Issue
Block a user