Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
FIX, vendor update and #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Aug 1, 2017
1 parent f48c82a commit 7cc5113
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ To see examples, look at the default templates:

## Maintainer Contact

Nathan Glasl, nathan@silverstripe.com.au
Nathan Glasl, nathan@symbiote.com.au
2 changes: 1 addition & 1 deletion _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* The mediawesome specific configuration settings.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

if(!defined('MEDIAWESOME_PATH')) {
Expand Down
4 changes: 2 additions & 2 deletions code/dataobjects/MediaAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Mediawesome CMS attribute for a media type.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

class MediaAttribute extends DataObject {
Expand Down Expand Up @@ -158,7 +158,7 @@ public function onBeforeWrite() {

$parameters = Controller::has_curr() ? Controller::curr()->getRequest()->requestVars() : null;
$matches = array();
if(is_array($parameters) && preg_match('#TypesAttributes/item/[0-9]*/#', $parameters['url'], $matches)) {
if(is_array($parameters) && isset($parameters['url']) && preg_match('#TypesAttributes/item/[0-9]*/#', $parameters['url'], $matches)) {
$ID = preg_replace('#[^0-9]#', '', $matches[0]);
$pages = MediaPage::get()->innerJoin('MediaType', 'MediaPage.MediaTypeID = MediaType.ID')->where('MediaType.ID = ' . (int)$ID);

Expand Down
2 changes: 1 addition & 1 deletion code/dataobjects/MediaTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Mediawesome CMS tag for a media page.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

class MediaTag extends DataObject {
Expand Down
2 changes: 1 addition & 1 deletion code/dataobjects/MediaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Mediawesome CMS type/category of media.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

class MediaType extends DataObject {
Expand Down
2 changes: 1 addition & 1 deletion code/extensions/SiteConfigMediaPermissionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Mediawesome extension which allows permission configuration for customisation of media.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

class SiteConfigMediaPermissionExtension extends DataExtension {
Expand Down
2 changes: 1 addition & 1 deletion code/pages/MediaHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Displays media holder/page children, with optional date/tag filters.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

class MediaHolder extends Page {
Expand Down
2 changes: 1 addition & 1 deletion code/pages/MediaPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Displays customised media content relating to the respective media type.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

class MediaPage extends Page {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "BSD-3-Clause",
"authors": [{
"name": "Nathan Glasl",
"email": "nathan@silverstripe.com.au"
"email": "nathan@symbiote.com.au"
}],
"require": {
"silverstripe/cms": "~3.2",
Expand Down
2 changes: 1 addition & 1 deletion css/mediawesome.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* The mediawesome specific styling.
* @author Nathan Glasl <nathan@silverstripe.com.au>
* @author Nathan Glasl <nathan@symbiote.com.au>
*/

p.mediawesome.notice,
Expand Down

0 comments on commit 7cc5113

Please sign in to comment.