Skip to content

Commit

Permalink
removed default fanpage id and added error message if pageid is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Seel committed May 9, 2012
1 parent d99bbf7 commit 08f28e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fblikes.snippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* fbLikes; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
* Suite 330, Boston, MA 02111-1307 USA
*/

$pageid = $modx->getOption('pageid',$scriptProperties,"19110642979");
$pageid = $modx->getOption('pageid',$scriptProperties,"");
$expiretime = $modx->getOption('expiretime',$scriptProperties,"10800");
$cacheKey = 'fblikes/' . $pageid;

if (empty($pageid)) return "You need to specify the fanpage id (pageid parameter)!";

// get data from cache
$cached_data = $modx->cacheManager->get($cacheKey);

Expand Down

0 comments on commit 08f28e3

Please sign in to comment.