Skip to content

Commit

Permalink
Remove deprecated lsu_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
philcali committed May 31, 2012
1 parent 226297b commit 30dc95f
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,9 @@

// Written at Louisiana State University

abstract class lsu_dev {
abstract static function pluginname();

static function is_lsu() {
global $CFG;
return isset($CFG->is_lsu) and $CFG->is_lsu;
}

abstract class quickmail {
public static function _s($key, $a = null) {
$class = get_called_class();

return get_string($key, $class::pluginname(), $a);
}

/**
* Shorten locally called string even more
*/
public static function gen_str() {
$class = get_called_class();

return function ($key, $a = null) use ($class) {
return get_string($key, $class::pluginname(), $a);
};
}
}

abstract class quickmail extends lsu_dev {
static function pluginname() {
return 'block_quickmail';
return get_string($key, 'block_quickmail', $a);
}

static function format_time($time) {
Expand Down

0 comments on commit 30dc95f

Please sign in to comment.