From 5ae6c3c3023b984b94e5dcba30797874a9398e8f Mon Sep 17 00:00:00 2001 From: adrianbj Date: Sun, 10 Dec 2017 09:15:40 -0800 Subject: [PATCH] Change hook priority to fix issue with AutoSmush module. --- ProcessCustomUploadNames.css | 6 ++---- ProcessCustomUploadNames.module | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ProcessCustomUploadNames.css b/ProcessCustomUploadNames.css index 249be44..5423a57 100644 --- a/ProcessCustomUploadNames.css +++ b/ProcessCustomUploadNames.css @@ -1,8 +1,6 @@ .cun-header { - border: none; - background: #ccc; + border: none !important; + background: #ccc !important; color: #000 !important; - outline: 1px solid #ccc; - outline-color: #ccc; padding: 4px !important; } \ No newline at end of file diff --git a/ProcessCustomUploadNames.module b/ProcessCustomUploadNames.module index 47455b8..d8239cf 100644 --- a/ProcessCustomUploadNames.module +++ b/ProcessCustomUploadNames.module @@ -26,7 +26,7 @@ class ProcessCustomUploadNames extends WireData implements Module, ConfigurableM public static function getModuleInfo() { return array( 'title' => __('Custom Upload Names'), - 'version' => '1.0.4', + 'version' => '1.0.5', 'author' => 'Adrian Jones', 'summary' => __('Automatically rename file/image uploads according to a configurable format'), 'href' => 'http://modules.processwire.com/modules/process-custom-upload-names/', @@ -95,7 +95,7 @@ class ProcessCustomUploadNames extends WireData implements Module, ConfigurableM //page in the admin $processPage = $this->wire('page'); if($processPage->process && in_array('WirePageEditor', class_implements((string) $processPage->process))) { - $this->addHookBefore('InputfieldFile::fileAdded', $this, 'customRenameUploads'); + $this->addHookBefore('InputfieldFile::fileAdded', $this, 'customRenameUploads', array('priority'=>10)); } //front-end API else {