function update($force)
 {
     if ($force || count($this->items) == 0) {
         $albums = pnModAPIFunc('mediashare', 'user', 'getAllAlbums', array('albumId' => 1, 'access' => $this->access, 'onlyMine' => $this->onlyMine));
         if ($albums === false) {
             pn_exit(LogUtil::getErrorMessagesText());
         }
         foreach ($albums as $album) {
             $this->addItem($album['title'], $album['id']);
         }
     }
 }
Example #2
0
 function pn_assert_callback_function($file, $line, $assert_trigger)
 {
     LogUtil::log(__f('Warning! Function %1$s is deprecated.', 'pn_assert_callback_function()', E_USER_DEPRECATED));
     return pn_exit(__('Assertion failed'));
 }