Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1097410
D257.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Aug 12, 10:50 PM
Size
882 B
Mime Type
text/x-diff
Expires
Wed, Aug 13, 10:50 PM (9 h, 7 m)
Engine
blob
Format
Raw Data
Handle
710589
Attached To
D257: INP-1594 - Generate/check category filename after page protection code was executed
D257.diff
View Options
Index: branches/5.2.x/core/units/categories/categories_event_handler.php
===================================================================
--- branches/5.2.x/core/units/categories/categories_event_handler.php
+++ branches/5.2.x/core/units/categories/categories_event_handler.php
@@ -1813,9 +1813,6 @@
$object = $event->getObject();
/* @var $object CategoriesItem */
- $object->checkFilename();
- $object->generateFilename();
-
$now = adodb_mktime();
if ( !$this->Application->isDebugMode() && strpos($event->Special, 'rebuild') === false ) {
@@ -1830,6 +1827,9 @@
}
}
+ $object->checkFilename();
+ $object->generateFilename();
+
// Don't allow creating records on behalf of another user.
if ( !$this->Application->isAdminUser && !defined('CRON') ) {
$object->SetDBField('CreatedById', $object->GetOriginalField('CreatedById'));
Event Timeline
Log In to Comment