Skip to content
Permalink
Browse files

Use plugin_load syntax

  • Loading branch information...
micgro42 committed Feb 18, 2015
1 parent d10da8f commit aceef212912460dfd9155f83c5a90405af5edacf
Showing with 5 additions and 4 deletions.
  1. +5 −4 helper.php
@@ -139,11 +139,12 @@ public function rate($rate, $page) {
$sqlite = $this->getDBHelper();
if(!$sqlite) return;
try {
$translation = new helper_plugin_translation();
$lang = $translation->getLangPart($page);
} catch (Exception $e){
$translation = plugin_load('helper', 'translation');
if (!$translation) {
$lang = '';
} else {
$lang = $translation->getLangPart($page);
}
$date = date('Y-m-d');

0 comments on commit aceef21

Please sign in to comment.
You can’t perform that action at this time.