Skip to content

Commit

Permalink
Uses self when no late static bindings needed
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGraph committed Oct 10, 2017
1 parent d9214fd commit 9c18c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/player/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public function __construct()
static::$prefs['provider']['default'] = static::$prefs['provider']['valid'][0];
static::$prefs['providers']['default'] = implode(', ', static::$prefs['provider']['valid']);

\add_privs('plugin_prefs.' . static::$plugin, static::$privs);
\add_privs('prefs.' . static::$plugin, static::$privs);
\add_privs('plugin_prefs.' . static::$plugin, self::$privs);
\add_privs('prefs.' . static::$plugin, self::$privs);

\register_callback(array($this, 'lifeCycle'), 'plugin_lifecycle.' . static::$plugin);
\register_callback('Oui\Player\Admin::optionsLink', 'plugin_prefs.' . static::$plugin, null, 1);
Expand All @@ -70,7 +70,7 @@ public function __construct()
$pref = $group . '_prefs';

if (!empty($_POST[$pref]) || (!isset($_POST[$pref]) && \get_pref($pref))) {
\add_privs('prefs.' . $group, static::$privs);
\add_privs('prefs.' . $group, self::$privs);
}
}
}
Expand Down

0 comments on commit 9c18c2c

Please sign in to comment.